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

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

:root {
  font-family: "Manrope", Arial, sans-serif;
  color: #353535;
  background: #fbfbfb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#top,
#projects {
  scroll-margin-top: 124px;
}

body {
  min-width: 320px;
  margin: 0;
}

body.home-page,
body.case-page {
  padding-top: 24px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.page-shell {
  width: min(1128px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 59px;
}

.home-page > .page-shell {
  padding-top: 0;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 84px;
  padding: 16px 32px;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 60px;
  background: transparent;
  box-shadow:
    0 14px 32px rgb(50 54 70 / 10%),
    0 3px 8px rgb(50 54 70 / 4%),
    inset 0 1px 0 rgb(255 255 255 / 96%),
    inset 0 -1px 0 rgb(255 255 255 / 45%);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-color: rgb(249 250 252 / 30%);
  background-image:
    radial-gradient(ellipse 65% 110% at 18% -35%, rgb(255 255 255 / 42%), transparent 75%),
    linear-gradient(155deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 3%) 52%, rgb(255 255 255 / 19%));
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  pointer-events: none;
  transition: background-color 300ms ease;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-scrolled {
  border-color: rgb(255 255 255 / 82%);
  box-shadow:
    0 18px 40px rgb(50 54 70 / 10%),
    0 4px 12px rgb(50 54 70 / 4%),
    inset 0 1px 0 rgb(255 255 255 / 94%),
    inset 0 -1px 0 rgb(255 255 255 / 36%);
}

.site-header.is-scrolled::before {
  background-color: rgb(249 250 252 / 44%);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before,
  .site-header.is-scrolled::before {
    background-color: rgb(249 250 252 / 94%);
  }
}

.home-page > .site-header,
.case-page > .site-header {
  width: min(1128px, calc(100% - 48px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  white-space: nowrap;
  font-size: 22px;
  line-height: 30px;
}

.brand-avatar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f1f1;
}

.brand-avatar img {
  display: block;
  width: 48px;
  height: 44px;
}

.main-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  width: auto;
  margin-left: auto;
  margin-right: 40px;
  font-size: 22px;
  line-height: 30px;
  white-space: nowrap;
}

.main-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.main-nav a:hover,
.brand:hover {
  color: #fd745e;
}

.header-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 12px;
}

.pill {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  --hover-lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 105px;
  height: 46px;
  padding: 8px 24px;
  border: 0;
  border-radius: 36px;
  cursor: pointer;
  font-size: 22px;
  line-height: 30px;
  transform: translate(var(--magnetic-x), calc(var(--magnetic-y) + var(--hover-lift)));
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.pill img {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  transition: transform 300ms ease;
}

.pill-cv {
  color: #fff;
  background: #fd745e;
}

.pill-tg {
  color: #353535;
  background: #f1f1f1;
}

@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    --hover-lift: -1px;
  }

  .pill:hover img {
    transform: translateY(-1px);
  }

  .pill-cv:hover {
    background: #f46a55;
  }
}

:focus-visible {
  outline: 3px solid #353535;
  outline-offset: 4px;
}

.hero {
  display: flex;
  align-items: center;
  height: 618px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 60px;
  background: #f3f3f3;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 512px;
  height: 640px;
  flex: 0 0 512px;
  overflow: hidden;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  flex: none;
}

.hero-portrait {
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
}

.hero-art .hero-pin {
  position: absolute;
  top: 6.56%;
  right: 2.34%;
  display: block;
  width: 29.3%;
  height: auto;
  aspect-ratio: 150 / 170;
  pointer-events: none;
}

.hero-pin {
  animation: hero-pin-float 3.2s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-pin-float {
  to {
    transform: translateY(-16px);
  }
}

.hero-sticker {
  position: absolute;
  z-index: 2;
  bottom: 13%;
  left: 7%;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 8px 14px rgb(0 0 0 / 12%);
}

.hero-sticker-ring {
  display: block;
  width: 100%;
  height: 100%;
  animation: hero-sticker-rotate 30s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.hero-sticker-ring text {
  fill: #353535;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.hero-sticker-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 57%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.hero-sticker-center img {
  display: block;
  width: 78%;
  height: auto;
}

@keyframes hero-sticker-rotate {
  to { transform: rotate(360deg); }
}

.hero-copy {
  min-width: 0;
  flex: 0 1 560px;
  margin-inline: auto;
  padding: 0 8px;
  text-align: center;
  transform: translateX(-30px);
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 54px;
  letter-spacing: 0;
  text-wrap: balance;
}

.heading-line {
  display: block;
  white-space: nowrap;
}

.wave-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.12em;
  vertical-align: -0.08em;
}

.intro-name {
  white-space: nowrap;
}

.accent {
  color: #fd755f;
}

.hero p {
  max-width: 592px;
  margin: 8px auto 0;
  color: #605e5e;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
  text-wrap: pretty;
}

.cases {
  width: min(1128px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.cases h2 {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 800;
  line-height: 54px;
  text-align: center;
  text-wrap: balance;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 545px);
  gap: 23px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 663px;
  padding: 30px 30px 40px;
  overflow: hidden;
  border-radius: 60px;
  background: #f1f1f1;
  transition: background-color 320ms ease, scale 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cases-compact .case-card {
  height: auto;
}

.case-card-sim {
  gap: 16px;
  height: 663px;
}

.case-card-link {
  color: inherit;
  text-decoration: none;
}

.case-card-link:focus-visible {
  outline: 3px solid #ff6f5b;
  outline-offset: 5px;
  border-radius: 30px;
}

.case-card:hover,
.case-card:focus-within {
  background: #efefef;
}

.case-card .case-description h3 {
  transition: color 260ms ease;
}

.case-card:hover .case-description h3,
.case-card:focus-within .case-description h3 {
  color: #fd745e;
}

.reveal-enabled .case-card[data-reveal] {
  opacity: 0;
  transition:
    opacity 500ms ease,
    background-color 320ms ease,
    scale 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover {
    scale: 1.014;
  }
}

.reveal-enabled .case-card[data-reveal]:nth-child(2) {
  transition-delay: 120ms;
}

.reveal-enabled .case-card[data-reveal].is-visible {
  opacity: 1;
}

.case-visual {
  position: relative;
  flex: 0 0 333px;
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
}

.case-visual img {
  position: absolute;
  display: block;
  height: auto;
}

.case-visual-sim {
  background: #fead2e;
}

.sim-visual-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.sim-visual-link:focus-visible {
  outline: 3px solid #ff6400;
  outline-offset: -3px;
}

.sim-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.case-card-sim .case-description {
  flex: none;
}

.case-card-result {
  margin: auto 0 0;
  color: #605e5e;
  font-size: 20px;
  line-height: 26px;
}

.case-visual-sim .sim-phone-scene {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 50%;
  width: 251px;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 12%;
  transition: transform 1050ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-visual-sim .sim-phone-scene > img {
  position: static;
  width: 100%;
  height: auto;
}

.sim-pickup-screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

.sim-phone-scene[data-delivery="pickup"] .sim-pickup-screen {
  opacity: 1;
}

.sim-delivery-hit {
  position: absolute;
  z-index: 3;
  top: 12.1%;
  width: 40.8%;
  height: 14.1%;
  padding: 0;
  border: 0;
  border-radius: 12%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.sim-delivery-hit-pickup { left: 8.3%; }
.sim-delivery-hit-courier { left: 51%; }

.sim-delivery-hit:focus-visible {
  outline: 3px solid #ff6400;
  outline-offset: 2px;
}

.sim-ui-pulse {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  border: 2px solid #ff6400;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(255 100 0 / 12%);
  opacity: 0;
  pointer-events: none;
}

.sim-ui-pulse-pickup {
  top: 23.6%;
  left: 43.3%;
}

.sim-ui-pulse-courier {
  top: 23.6%;
  left: 85.7%;
}

.sim-phone-scene[data-delivery="pickup"] .sim-ui-pulse-pickup,
.sim-phone-scene[data-delivery="courier"] .sim-ui-pulse-courier {
  animation: sim-ui-pulse 1.1s ease-out 1;
}

@keyframes sim-ui-pulse {
  0%, 8% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  14% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.7); }
  38%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

.reveal-enabled .case-card[data-reveal]:not(.is-visible) .sim-phone-scene {
  transform: translate3d(-50%, 42px, 0);
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .sim-phone-scene {
    transform: translateX(-50%);
  }
}

.case-visual-tariff {
  background: #fd725d;
}

.tariff-scene {
  position: absolute;
  inset: 0;
  background: #fd725d;
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tariff-scene img {
  position: absolute;
  display: block;
  pointer-events: none;
}

.tariff-phone {
  z-index: 1;
  top: 22.8%;
  left: 20.3%;
  width: 75%;
  height: auto;
}

.tariff-ticket {
  z-index: 2;
  top: 16.2%;
  left: 16.1%;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 8px 10px rgb(133 69 10 / 15%));
  transform-origin: 53% 54%;
  will-change: transform, filter;
}

.tariff-star {
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.tariff-star-large {
  clip-path: inset(13% 65.5% 65% 18.5%);
  --star-x: 2px;
  --star-y: -8px;
  animation-duration: 4.4s;
}

.tariff-star-top {
  clip-path: inset(20% 58% 68% 34%);
  --star-x: -2px;
  --star-y: -5px;
  animation-duration: 3.6s;
  animation-delay: -1.2s;
}

.tariff-star-left {
  clip-path: inset(42% 74% 43% 17%);
  --star-x: 2px;
  --star-y: -6px;
  animation-duration: 4.1s;
  animation-delay: -2.1s;
}

.reveal-enabled .case-card[data-reveal]:not(.is-visible) .tariff-scene {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.case-card.is-in-view.is-visible .tariff-ticket {
  animation: tariff-ticket-drift 4.8s ease-in-out infinite alternate;
}

.case-card.is-in-view.is-visible .tariff-star {
  animation-name: tariff-star-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.case-card:hover .tariff-star,
.case-card:focus-within .tariff-star {
  --star-y: -10px;
}

.case-card:hover .tariff-ticket,
.case-card:focus-within .tariff-ticket {
  --ticket-rise: -10px;
}

@keyframes tariff-ticket-drift {
  to {
    transform: translate3d(2px, var(--ticket-rise, -7px), 0) rotate(-1deg);
    filter: drop-shadow(0 15px 15px rgb(133 69 10 / 20%));
  }
}

@keyframes tariff-star-drift {
  to {
    transform: translate3d(var(--star-x), var(--star-y), 0);
  }
}

.case-visual-exchange {
  background: #fead2e;
}

.case-visual-exchange img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: opacity 850ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-enabled .case-card[data-reveal]:not(.is-visible) .case-visual-exchange img {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}

.case-card.is-in-view.is-visible .case-visual-exchange img {
  animation: exchange-card-drift 5.8s ease-in-out infinite alternate;
}

@keyframes exchange-card-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.055) translate3d(0, -3px, 0);
  }
}

.case-visual-bank {
  background: #f2d907;
}

.case-visual-bank img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-visual-avito {
  background: #dcdcdc;
}

.case-visual-playbook {
  background: #fff;
}

.case-visual-referral {
  background: #ff8b0d;
}

.referral-cover-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  aspect-ratio: 1730 / 1400;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease;
}

.referral-cover-scene img {
  position: absolute;
  display: block;
  height: auto;
}

.referral-cover-base {
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

.referral-cover-shield {
  top: 21.14%;
  left: 72.89%;
  width: 11.62%;
  transform-origin: 50% 50%;
}

.referral-cover-signal {
  top: 66.07%;
  left: 12.02%;
  width: 38.44%;
  transform-origin: 50% 55%;
}

.reveal-enabled .case-card[data-reveal]:not(.is-visible) .referral-cover-scene {
  opacity: 0.65;
}

.case-card.is-in-view.is-visible .referral-cover-shield {
  animation: referral-shield-float 2.8s ease-in-out infinite alternate;
}

.case-card.is-in-view.is-visible .referral-cover-signal {
  animation: referral-signal-float 3.2s ease-in-out infinite alternate;
}

@keyframes referral-shield-float {
  from { transform: translate3d(-7px, 7px, 0) rotate(-8deg) scale(.94); }
  to { transform: translate3d(10px, -14px, 0) rotate(9deg) scale(1.09); }
}

@keyframes referral-signal-float {
  from { transform: translate3d(9px, 8px, 0) rotate(5deg) scale(.96); }
  to { transform: translate3d(-9px, -9px, 0) rotate(-6deg) scale(1.07); }
}

.case-card:focus-visible .referral-cover-scene {
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .referral-cover-base,
  .case-card:hover .referral-cover-shield,
  .case-card:hover .referral-cover-signal {
    animation-duration: 2.3s;
  }
}

.case-visual-avito img {
  top: 1px;
  left: 16px;
  width: 455px;
}

.case-visual-playbook img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.055);
}

.case-description {
  display: flex;
  flex: 0 0 130px;
  flex-direction: column;
  gap: 8px;
}

.cases-compact .case-description {
  flex: none;
}

.case-description h3 {
  width: calc(100% + 20px);
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 34px;
  text-wrap: balance;
}

.case-description p {
  max-width: 409px;
  margin: 0;
  color: #605e5e;
  font-size: 22px;
  line-height: 27px;
  text-wrap: pretty;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-tags li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 3px 14px;
  border: 1px solid #898989;
  border-radius: 40px;
  background: transparent;
  color: #898989;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}

.featured-case {
  width: min(1128px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}

.featured-card {
  width: 100%;
  height: 768px;
}

.featured-visual {
  position: relative;
  flex: 0 0 421px;
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #353535;
}

.featured-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(-3%, 0, 0) scale(1.1);
}

.featured-card.is-in-view .featured-visual > img {
  animation: featured-image-drift 12s ease-in-out infinite alternate;
}

@keyframes featured-image-drift {
  to { transform: translate3d(3%, 0, 0) scale(1.1); }
}

.redesign-hero-visual.is-animated > img {
  opacity: 0;
}

.redesign-hero-visual > img {
  transition: opacity 700ms ease;
}

.redesign-flow {
  --flow-tile-width: 160px;
  --flow-tile-height: 320px;
  --flow-gap: 16px;
  --flow-travel: 1232px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #353535;
  opacity: 0;
  transition: opacity 700ms ease;
}

.redesign-flow.is-ready {
  opacity: 1;
}

.redesign-flow-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: max-content;
  flex-direction: column;
  gap: var(--flow-gap);
  transform: translate(-50%, -50%) rotate(30deg);
}

.redesign-flow-row,
.redesign-flow-set {
  display: flex;
  flex: none;
}

.redesign-flow-row {
  width: max-content;
  animation: redesign-flow-slide 350s linear infinite;
  will-change: transform;
}

.redesign-flow-row:nth-child(even) {
  animation-direction: reverse;
}

.redesign-flow-set {
  gap: var(--flow-gap);
  padding-right: var(--flow-gap);
}

.redesign-flow-tile {
  position: relative;
  flex: none;
  width: var(--flow-tile-width);
  height: var(--flow-tile-height);
  overflow: hidden;
  border: 3px solid rgb(11 12 13 / 86%);
  border-radius: 26px;
  background: linear-gradient(155deg, #ffca38, #fa5f05 80%);
}

.redesign-flow-photo {
  position: absolute;
  z-index: 1;
  bottom: -5%;
  left: -25%;
  display: block;
  width: 150%;
  height: auto;
  max-width: none;
}

.redesign-flow-copy {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}

.redesign-flow-copy strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.07;
  white-space: pre-line;
}

.redesign-flow-copy span {
  font-size: 9px;
  line-height: 1.2;
}

.redesign-flow-action {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 12px;
  left: 10px;
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 30px;
  background: #fff;
  color: #fa5f05;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.redesign-flow-tile--bonus {
  background: linear-gradient(160deg, #6da9f8, #3972de);
}

.redesign-flow-tile--bonus .redesign-flow-photo {
  bottom: 3%;
  left: -46%;
  width: 205%;
}

.redesign-flow-tile--jar .redesign-flow-photo {
  bottom: -11%;
  left: -34%;
  width: 170%;
}

.redesign-flow-tile--knit .redesign-flow-photo {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.redesign-flow-tile--knit::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(#70220066, transparent 55%);
  content: "";
}

.redesign-flow-tile--child,
.redesign-flow-tile--family {
  background: linear-gradient(160deg, #b97c4d, #f1c79d);
}

.redesign-flow-tile--child .redesign-flow-photo {
  bottom: -7%;
  left: -34%;
  width: 180%;
}

.redesign-flow-tile--family .redesign-flow-photo {
  bottom: -11%;
  left: -40%;
  width: 180%;
}

.redesign-flow-tile--man .redesign-flow-photo {
  bottom: -12%;
  left: -23%;
  width: 150%;
}

.redesign-flow-tile--transfer {
  background: linear-gradient(160deg, #ffdf40, #ff9b0a);
}

.redesign-flow-tile--transfer::after {
  position: absolute;
  right: -24px;
  bottom: 40px;
  width: 142px;
  height: 142px;
  border-radius: 28px;
  background: #ffe178;
  box-shadow: inset -14px -16px 0 #ffbc38;
  content: "";
  transform: rotate(20deg);
}

.redesign-flow-tile--transfer .redesign-flow-copy span {
  font-size: 15px;
  font-weight: 800;
}

@keyframes redesign-flow-slide {
  to {
    transform: translate3d(calc(-1 * var(--flow-travel)), 0, 0);
  }
}

.featured-details {
  display: flex;
  flex: 0 0 130px;
  gap: 40px;
  align-items: flex-start;
}

.featured-copy {
  flex: 1;
}

.featured-copy h3 {
  max-width: 751px;
}

.featured-copy p {
  max-width: 501px;
}

.award-list {
  position: relative;
  display: flex;
  flex: 0 0 125px;
  align-items: center;
}

.award-list::after {
  position: absolute;
  inset: 0 50% 0 0;
  background: url("assets/redesign-awards-figma.png") left center / 200% 100% no-repeat;
  content: "";
  filter: brightness(0.906) contrast(1.231);
  pointer-events: none;
}

.award-list img {
  display: block;
  width: 125px;
  height: 62px;
}

.contact-section {
  width: min(1128px, calc(100% - 48px));
  margin: 24px auto 88px;
}

.contact-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 32px;
  overflow: hidden;
  border-radius: 60px;
  background: #f1f1f1;
  text-align: center;
}

.contact-card h2 {
  position: relative;
  margin: 0;
  color: #353535;
  font-size: clamp(32px, 3.7vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.contact-card h2 span {
  color: #fd745e;
}

.contact-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
  border-radius: 40px;
  background: #fd745e;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms ease, opacity 700ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-4px);
  background: #ee634d;
}

.contact-button:focus-visible {
  outline: 3px solid #353535;
  outline-offset: 4px;
}

.contact-button-icon {
  display: inline-flex;
  width: 0;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  transition: width 300ms ease, margin-left 300ms ease, opacity 220ms ease, transform 300ms ease;
}

.contact-button-icon img {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  filter: brightness(0) invert(1);
}

.contact-button:hover .contact-button-icon,
.contact-button:focus-visible .contact-button-icon {
  width: 20px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

.reveal-enabled .contact-section[data-reveal]:not(.is-visible) h2,
.reveal-enabled .contact-section[data-reveal]:not(.is-visible) .contact-button {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-enabled .contact-section h2 {
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-enabled .contact-section.is-visible .contact-button {
  animation: contact-button-enter 700ms 160ms backwards;
}

@keyframes contact-button-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .contact-section {
    width: min(100% - 24px, 480px);
    margin: 0 auto 48px;
  }

  .contact-card {
    min-height: 300px;
    gap: 24px;
    padding: 44px 20px;
    border-radius: 32px;
  }

  .contact-card h2 {
    font-size: clamp(25px, 7vw, 36px);
  }

  .contact-button {
    min-height: 46px;
    font-size: 15px;
  }
}

@media (hover: none) {
  .contact-button-icon {
    width: 20px;
    margin-left: 8px;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-button,
  .contact-button-icon,
  .reveal-enabled .contact-section h2 {
    transition: none;
  }

  .reveal-enabled .contact-section.is-visible .contact-button {
    animation: none;
  }

}

@media (max-width: 1200px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    gap: 24px;
  }

  .main-nav {
    gap: 24px;
    width: auto;
    margin-right: 0;
  }

  .hero-art {
    width: 45.4%;
    flex-basis: 45.4%;
  }

  .hero-copy {
    padding: 0 8px;
  }

  .hero h1 {
    font-size: clamp(35px, 4vw, 48px);
    line-height: 1.125;
  }

  .hero p {
    font-size: clamp(17px, 1.85vw, 22px);
    line-height: 1.23;
  }
}

@media (max-width: 1150px) {
  .case-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .case-card {
    width: min(100%, 545px);
  }

  .featured-card {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-sticker {
    width: 102px;
  }

  #top,
  #projects {
    scroll-margin-top: 128px;
  }

  .site-header {
    gap: 12px;
    border-radius: 42px;
  }

  .brand {
    font-size: 18px;
  }

  .main-nav {
    margin-left: auto;
    font-size: 18px;
  }

  .pill {
    min-width: auto;
    height: 46px;
    padding: 8px 14px;
    font-size: 18px;
  }

  .hero {
    height: auto;
    border-radius: 44px;
  }

  .hero-art {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero h1 {
    font-size: clamp(29px, 4.2vw, 38px);
  }

  .heading-line {
    white-space: normal;
  }

  .reveal-enabled .case-card[data-reveal]:nth-child(2) {
    transition-delay: 0ms;
  }

}

@media (max-width: 650px) {
  body.home-page,
  body.case-page {
    padding-top: 12px;
  }

  .home-page > .site-header,
  .case-page > .site-header {
    width: min(100% - 24px, 480px);
  }

  .page-shell {
    width: min(100% - 24px, 480px);
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .site-header {
    gap: 8px;
    top: 12px;
    height: 68px;
    padding: 11px 16px;
    border-radius: 34px;
  }

  .brand {
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
  }

  .brand-avatar {
    width: 40px;
    height: 40px;
  }

  .brand-avatar img {
    width: 37px;
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .pill {
    gap: 2px;
    height: 46px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .pill img {
    width: 18px;
    height: 18px;
  }

  .main-nav {
    gap: 24px;
    font-size: 15px;
    line-height: 22px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 16px;
    border-radius: 32px;
  }

  .hero-art {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 4 / 5;
    flex: none;
  }

  .hero-sticker {
    width: clamp(85px, 22vw, 104px);
  }

  .hero-copy {
    width: 100%;
    flex: none;
    padding: 0 20px 34px;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.15;
  }

  .heading-line {
    white-space: normal;
  }

  .hero p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
  }

  .cases {
    width: min(100% - 24px, 480px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cases h2 {
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 38px;
  }

  .case-grid {
    gap: 16px;
  }

  .case-card {
    gap: 16px;
    height: auto;
    padding: 16px 16px 20px;
    border-radius: 32px;
  }

  .case-visual {
    flex: none;
    height: auto;
    aspect-ratio: 485 / 333;
    border-radius: 20px;
  }

  .case-visual-sim .sim-phone-scene {
    top: 12%;
    width: 51.75%;
  }

  .sim-card-copy {
    gap: 16px;
  }

  .case-visual-exchange img {
    inset: 0;
    width: 100%;
  }

  .case-visual-bank img {
    inset: 0;
    width: 100%;
  }

  .case-visual-avito img {
    top: 0;
    left: 3.3%;
    width: 94%;
  }

  .case-visual-playbook img {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .case-description {
    flex: none;
    gap: 6px;
  }

  .case-description h3 {
    width: 100%;
    font-size: 24px;
    line-height: 26px;
  }

  .case-description p {
    font-size: 16px;
    line-height: 22px;
  }

  .case-tags {
    gap: 8px;
  }

  .case-tags li {
    height: 32px;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 22px;
  }

  .case-card-result {
    font-size: 16px;
    line-height: 22px;
  }

  .featured-case {
    width: min(100% - 24px, 480px);
    padding: 8px 0 48px;
  }

  #projects {
    padding-bottom: 8px;
  }

  .featured-card {
    height: auto;
  }

  .featured-visual {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    border-radius: 20px;
  }

  .redesign-flow {
    --flow-tile-width: 112px;
    --flow-tile-height: 224px;
    --flow-gap: 10px;
    --flow-travel: 854px;
  }

  .redesign-flow-tile {
    border-width: 2px;
    border-radius: 17px;
  }

  .redesign-flow-copy {
    top: 12px;
    right: 8px;
    left: 8px;
    gap: 4px;
  }

  .redesign-flow-copy strong {
    font-size: 12px;
  }

  .redesign-flow-copy span {
    font-size: 7px;
  }

  .redesign-flow-action {
    right: 7px;
    bottom: 8px;
    left: 7px;
    min-height: 20px;
    font-size: 7px;
  }

  .redesign-flow-tile--transfer .redesign-flow-copy span {
    font-size: 11px;
  }

  .featured-details {
    flex: none;
    flex-direction: column;
    gap: 12px;
  }

  .featured-copy {
    flex: none;
  }

  .award-list {
    flex: none;
    align-self: flex-end;
  }

  .award-list img {
    width: 100px;
    height: auto;
  }
}

@media (max-width: 380px) {
  #top,
  #projects {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 480px) {
  .site-header .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 650px) {
  .site-header {
    gap: 10px;
    padding-inline: 18px;
  }

  .site-header::before {
    background-color: rgb(249 250 252 / 32%);
    background-image: linear-gradient(145deg, rgb(255 255 255 / 28%), rgb(255 255 255 / 4%) 55%, rgb(255 255 255 / 15%));
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    backdrop-filter: blur(8px) saturate(1.2);
  }

  .site-header.is-scrolled::before {
    background-color: rgb(249 250 252 / 42%);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);
    backdrop-filter: blur(10px) saturate(1.25);
  }

  .main-nav {
    margin-right: 0;
    font-size: 17px;
    line-height: 24px;
  }

  .header-actions {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill,
  .pill img {
    transition: none;
  }

  .pill,
  .pill:hover,
  .pill:active,
  .pill:hover img {
    transform: none;
  }

  .featured-card.is-in-view .featured-visual > img {
    animation: none;
  }

  .case-card:hover,
  .case-card:focus-within {
    scale: 1;
  }

  .case-card,
  .case-card .case-description h3,
  .case-visual,
  .featured-visual,
  .case-visual-sim .sim-phone-scene,
  .case-visual-tariff .tariff-scene,
  .case-visual-exchange img,
  .referral-cover-scene {
    transition: none;
  }

  .referral-cover-scene,
  .reveal-enabled .case-card[data-reveal]:not(.is-visible) .referral-cover-scene,
  .case-card:hover .referral-cover-scene,
  .case-card:focus-visible .referral-cover-scene {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .case-card:hover .case-visual-referral,
  .case-card:focus-within .case-visual-referral {
    transform: none;
  }

  .reveal-enabled .case-card[data-reveal]:not(.is-visible) .sim-phone-scene,
  .case-card:hover .sim-phone-scene {
    transform: translateX(-50%);
  }

  .sim-ui-pulse {
    animation: none !important;
    opacity: 0;
  }

  .case-visual-tariff .tariff-scene,
  .case-visual-tariff .tariff-ticket,
  .case-visual-tariff .tariff-star,
  .case-visual-exchange img,
  .referral-cover-base,
  .referral-cover-shield,
  .referral-cover-signal,
  .hero-pin,
  .hero-sticker-ring {
    animation: none !important;
    transform: none;
  }

  .reveal-enabled .case-card[data-reveal]:not(.is-visible) .case-visual-tariff .tariff-scene {
    opacity: 1;
  }

  .reveal-enabled .case-card[data-reveal]:not(.is-visible) .case-visual-exchange img {
    opacity: 1;
  }

  .redesign-flow-row {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-enabled .case-card[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

.site-footer {
  border-top: 1px solid #202023;
  background: #0d0d0f;
  color: #85858a;
}

.site-footer-inner {
  width: min(1128px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .site-footer-inner {
    width: calc(100% - 32px);
    padding: 20px 0;
    font-size: 12px;
  }
}
