/* Базовые стили, общие блоки и анимации MakeRun */
@font-face {
  font-family: Golos;
  src: url("../assets/fonts/Gol400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("../assets/fonts/Gol700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url("../assets/fonts/Osw600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #191a1c;
  color: #fff6ed;
  font-family: Golos, sans-serif;
  --ground: #191a1c;
  --type: #fff6ed;
  --quiet: #e4d1c2;
  --accent: #f9693c;
  --line: #685545;
  --paper: #fff0df;
  --gut: 3.89%;
  --ink: #191a1c;
  --rule: #aa9284;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
p,
figure,
dl,
dd {
  margin: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.surface_theme_paper :focus-visible,
.discussion :focus-visible {
  outline-color: var(--ink);
}
.container {
  width: calc(100% - var(--gut) * 2);
  max-width: 1510px;
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  flex: none;
  display: block;
  width: max-content;
}
.site-header .brand img {
  width: 139px;
}
.site-nav,
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 35px;
}
.site-nav {
  font-size: 17px;
}
.site-nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.site-nav__links [aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--accent);
}
.site-nav__contact {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  padding: 13px 17px;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}
.site-nav__contact b {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.site-nav .site-nav__contact:hover {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.site-nav__mobile {
  display: none;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-block: 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  color: var(--quiet);
  font-size: 14px;
}
main > .container:last-child {
  padding-bottom: 64px;
}

.page-title {
  margin: 0;
  font:
    600 clamp(58px, 6.25vw, 102px) / 1.06 Oswald,
    sans-serif;
  letter-spacing: -0.018em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.intro-text {
  color: var(--quiet);
  margin-top: 26px;
  max-width: 37ch;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.47;
}
.project-kind {
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.4;
}
.surface_theme_paper {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.surface_theme_paper .project-kind,
.surface_theme_paper figcaption {
  color: #65483b;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 17px;
}
.surface_theme_paper .section-heading {
  border-color: var(--rule);
}
.section-heading h2,
.detail-grid h2,
.case-details h2,
.estimate h2 {
  margin: 0;
  font:
    600 clamp(28px, 3vw, 41px) / 1.15 Oswald,
    sans-serif;
  letter-spacing: -0.012em;
}
.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
}
.button {
  padding: 13px 15px;
  background: var(--accent);
  border: 1px solid transparent;
  color: var(--ink);
  min-height: 49px;
}
.button > span,
.text-link > span {
  flex: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.button_theme_ink {
  background: var(--ground);
  color: var(--type);
  border-color: var(--ground);
}
.button:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.text-link {
  padding-block: 6px;
  gap: 12px;
}
.text-link:hover,
.breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.text-link > span,
.link-arrow {
  color: var(--accent);
}
.surface_theme_paper .text-link > span,
.surface_theme_paper .link-arrow {
  color: #a33b24;
}
.link-arrow {
  font-size: 26px;
  line-height: 1;
  flex: none;
}
.breadcrumb {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 27px 0 23px;
  font-size: 14px;
  color: var(--quiet);
}
.breadcrumb span {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.discussion {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
}
.discussion__inner {
  position: relative;
  isolation: isolate;
  padding-block: 48px 53px;
}
.discussion__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -32% -11% -30% auto;
  width: 62%;
  background: #c74126;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii01IC01IDEzMSAxMDQiIHJvbGU9ImltZyI+PHRpdGxlPk1ha2VSdW4g4oCUINC+0YLQtNC10LvRjNC90YvQuSDQt9C90LDQuiBNUjwvdGl0bGU+PHBhdGggZmlsbD0iIzAwMDAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMiA1SDI3TDQ4IDI2TDY5IDVIODdDMTA1IDUgMTE1IDE1IDExNSAzMUMxMTUgNDQgMTA3IDU0IDk0IDU5TDExOCA4OUg5MUw2NiA2MUw1MSA3Nkg0NkwyNCA1M1Y4OUgyWk03MiAyNEw1OCA0MUg4NUM5MSA0MSA5NSAzOCA5NSAzMkM5NSAyNyA5MSAyNCA4NSAyNFoiLz48L3N2Zz4K")
    55% center/110% auto no-repeat;
}
.discussion h2 {
  font:
    600 clamp(42px, 6.4vw, 99px) / 1.06 Oswald,
    sans-serif;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 13ch;
}
.discussion p {
  margin: 16px 0 22px;
  max-width: 43ch;
  line-height: 1.45;
  font-size: 17px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--split-gap, clamp(28px, 4.2vw, 76px));
}
.split-layout__copy {
  min-width: 0;
}
.split-layout__copy .button,
.split-layout__copy .text-link {
  margin-top: 25px;
}
.service-intro,
.case-intro {
  padding-bottom: 50px;
}
.service-proof {
  display: block;
  min-width: 0;
  align-self: stretch;
}
.service-proof > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.service-proof:hover > div:last-child {
  border-color: var(--accent);
}
.cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 385px;
  overflow: hidden;
  isolation: isolate;
}
.cover_kind_booking {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3.1vw, 51px);
  background: #292529;
  padding: 25px 20px;
}
.cover_kind_booking::before,
.cover_kind_booking::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cover_kind_booking::before {
  background: var(--accent);
  clip-path: polygon(35% 0, 100% 0, 100% 69%, 20% 100%, 0 100%, 0 83%, 38% 44%, 23% 44%);
}
.cover_kind_booking::after {
  background: repeating-linear-gradient(151deg, transparent 0 31px, #47332b 32px 33px);
  clip-path: polygon(0 0, 36% 0, 24% 43%, 38% 43%, 0 82%);
}
.cover_kind_booking img {
  width: 31%;
  max-width: 208px;
  border: 1px solid #705246;
  border-radius: 14px;
  box-shadow: 0 10px 25px #191a1c52;
}
.cover_kind_booking img + img {
  transform: translateY(10px);
}
.cover_kind_loyalty {
  background: #252425;
  padding: 22px;
  --map-rule: #a67563;
  color: var(--type);
}
.cover_kind_loyalty::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #49312d;
  clip-path: polygon(67% 0, 99% 0, 55% 100%, 22% 100%, 43% 56%, 34% 56%);
}
.loyalty-map {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 455px;
  text-align: center;
  font-size: 14px;
}
.loyalty-map__sources {
  display: grid;
  gap: 10px;
  position: relative;
}
.loyalty-map__sources::after,
.loyalty-map__output::before {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 1px solid var(--map-rule);
  width: 20px;
  right: -20px;
}
.loyalty-map__output::before {
  left: -20px;
  right: auto;
}
.loyalty-map__sources span,
.loyalty-map__balance,
.loyalty-map__output {
  padding: 11px 5px;
  border: 1px solid var(--map-rule);
  background: var(--ground);
}
.loyalty-map__balance {
  padding: 11px 7px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}
.loyalty-map__output {
  position: relative;
  font-size: 13px;
}
.cover_kind_screen {
  background: #282629;
  padding: clamp(12px, 2.7vw, 42px);
}
.cover_kind_screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #e66441;
  clip-path: polygon(63% 0, 100% 0, 100% 100%, 15% 100%, 48% 51%, 37% 51%);
}
.cover_kind_screen img {
  width: 100%;
  border: 1px solid #1d1a1b;
  box-shadow: 0 8px 16px #1118;
}
.cover_kind_diagram {
  background: #262425;
  padding: 26px;
}
.cover_kind_diagram::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #43322d;
  clip-path: polygon(18% 0, 80% 0, 51% 48%, 63% 48%, 38% 100%, 0 100%, 0 58%, 24% 29%);
}
.system-map {
  width: min(100%, 330px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.system-map li {
  position: relative;
  padding: 15px 20px;
  color: var(--type);
  border: 1px solid #a67563;
  background: var(--ground);
  text-align: center;
  font-weight: 700;
}
.system-map li + li {
  margin-top: 20px;
}
.system-map li + li::before {
  content: "↓";
  color: var(--accent);
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  line-height: 21px;
}
.system-map li:last-child {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.detail-grid,
.case-details {
  display: grid;
  grid-template-columns: minmax(0, 0.81fr) minmax(0, 1.19fr);
  gap: clamp(22px, 6vw, 110px);
  padding-block: 58px;
}
.detail-grid > div p,
.estimate p {
  margin-top: 13px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 62ch;
}
.surface_theme_paper .format-list {
  --list-rule: var(--rule);
}
.format-list {
  --list-rule: var(--line);
  border-top: 1px solid var(--list-rule);
}
.format-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px 20px;
  border-bottom: 1px solid var(--list-rule);
  padding: 15px 0;
  line-height: 1.46;
}
.format-list dt {
  font-weight: 700;
}
.case-list {
  padding-block: 55px;
}
.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) auto;
  align-items: center;
  gap: 14px clamp(18px, 4vw, 65px);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.case-card h3 {
  margin: 4px 0 0;
  font:
    600 clamp(24px, 3vw, 38px) / 1.13 Oswald,
    sans-serif;
}
.case-card p {
  font-size: 16px;
  line-height: 1.48;
  color: var(--quiet);
}
.case-card:hover {
  border-color: var(--accent);
}
.case-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}
.estimate {
  padding: 8px 0 57px;
}
.case-intro .project-kind {
  margin-bottom: 10px;
}
.case-intro .page-title {
  font-size: clamp(47px, 5.1vw, 83px);
}
.case-intro .cover {
  min-height: 410px;
}
.case-details {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.case-details__story {
  display: grid;
  gap: 26px;
}
.case-details__story p,
.case-details__flow li {
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.58;
}
.case-details__flow {
  align-self: start;
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}
.case-details__flow h2 {
  font-size: clamp(25px, 2.85vw, 37px);
}
.case-details__flow ol {
  padding-left: 1.3em;
  margin-bottom: 0;
}
.case-details__flow li {
  padding-left: 8px;
}
.case-details__flow li::marker {
  color: #a84129;
  font-weight: 700;
}
figcaption {
  font-size: 14px;
  margin-top: 10px;
}
#brief-status {
  color: #65483b;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}
#brief-status:empty {
  display: none;
}
#brief-status:not(:empty) {
  margin-top: 13px;
}

@media (max-width: 1180px) {
  .site-header {
    min-height: 78px;
  }
  .site-nav,
  .site-nav__links {
    gap: 23px;
  }
  .cover,
  .case-intro .cover {
    min-height: 345px;
  }
}
@media (max-width: 840px) {
  :root {
    --gut: 22px;
  }
  .site-header .brand img {
    width: 115px;
  }
  .site-nav,
  .site-nav__links {
    gap: 17px;
  }
  .site-nav {
    font-size: 15px;
  }
  .site-nav__contact {
    padding: 11px 12px;
    font-size: 13px;
  }
  .discussion__inner::after {
    width: 58%;
    opacity: 0.78;
  }
  .loyalty-map {
    font-size: 13px;
    gap: 12px;
  }
  .loyalty-map__sources::after,
  .loyalty-map__output::before {
    width: 12px;
    right: -12px;
  }
  .loyalty-map__output::before {
    left: -12px;
    right: auto;
  }
  .detail-grid,
  .case-details {
    padding-block: 40px;
  }
  .service-intro,
  .case-intro {
    padding-bottom: 32px;
  }
}
@media (max-width: 680px) {
  .site-header {
    gap: 8px;
  }
  .site-header .site-nav > .site-nav__links {
    display: none;
  }
  .site-header .site-nav > .site-nav__mobile {
    display: block;
  }
  .site-nav {
    gap: 9px;
  }
  .site-nav__mobile summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 44px;
    list-style: none;
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .site-nav__mobile summary::-webkit-details-marker {
    display: none;
  }
  .site-nav__mobile summary span {
    height: 1px;
    width: 18px;
    background: var(--type);
  }
  .site-nav__mobile[open] summary {
    background: #392821;
  }
  .site-nav__mobile > div {
    position: absolute;
    top: 100%;
    right: var(--gut);
    width: min(260px, calc(100% - var(--gut) * 2));
    padding: 4px 14px;
    background: var(--ground);
    border: 1px solid var(--line);
  }
  .site-nav__mobile > div a {
    display: block;
    padding: 13px 0;
  }
  .site-nav__mobile > div a + a {
    border-top: 1px solid var(--line);
  }
  .page-title,
  .case-intro .page-title {
    font-size: clamp(42px, 9.5vw, 64px);
    text-wrap: initial;
  }
  .intro-text {
    margin-top: 16px;
  }
  .split-layout,
  .detail-grid,
  .case-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-layout {
    gap: 25px;
  }
  .discussion__inner {
    padding-block: 35px 36px;
  }
  .discussion__inner::after {
    inset: -30% -34% -42% auto;
    width: 85%;
    opacity: 0.38;
  }
  .discussion p {
    max-width: 28ch;
  }
  .breadcrumb {
    margin: 19px 0 16px;
  }
  .cover,
  .case-intro .cover {
    min-height: 270px;
  }
  .cover_kind_screen {
    min-height: 225px;
  }
  .cover_kind_booking {
    padding: 17px 15px;
  }
  .cover_kind_booking img {
    width: 33%;
    border-radius: 10px;
  }
  .cover_kind_booking img + img {
    transform: translateY(5px);
  }
  .detail-grid,
  .case-details {
    gap: 23px;
    padding-block: 31px;
  }
  .format-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .case-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding-block: 15px;
  }
  .case-card > p {
    grid-column: 1;
    font-size: 15px;
  }
  .case-card .link-arrow {
    grid-column: 2;
    grid-row: 1;
  }
  .case-list {
    padding-block: 31px;
  }
  .estimate {
    padding-bottom: 33px;
  }
  .case-details__story {
    gap: 20px;
  }
  main > .container:last-child {
    padding-bottom: 38px;
  }
  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    padding-block: 24px;
  }
  .site-footer nav {
    gap: 12px 18px;
  }
}
.site-header .site-nav__contact {
  color: var(--ink);
}
@media (max-width: 370px) {
  .site-header .brand img {
    width: 97px;
  }
  .site-nav__contact-suffix {
    display: none;
  }
}

.page-cut {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}
[data-page-cut] .page-cut {
  display: block;
}
.page-cut svg {
  position: absolute;
  inset: 0 -50%;
  width: 200%;
  height: 100%;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  [data-page-cut] .page-cut {
    display: none;
  }
}

.motion-panel {
  --art-play: paused;
  --art-cycle: 6.4s;
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.motion-panel_running {
  --art-play: running;
}
.motion-panel__control {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ground);
  color: var(--type);
  border: 1px solid #a67a67;
  font:
    17px/1 Golos,
    sans-serif;
}
.motion-panel__control:hover {
  background: var(--paper);
  color: var(--ink);
}
.motion-panel__control:focus-visible {
  outline-color: var(--paper);
  outline-offset: 2px;
}
.motion-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: hidden;
}
.motion-panel .cover::before,
.motion-panel .cover::after {
  content: none;
}
.motion-panel .cover :is(img, .loyalty-map, .system-map) {
  position: relative;
  z-index: 1;
}
.motion-panel :is(.cover_kind_booking, .cover_kind_screen) {
  background: #ee623e;
}
.motion-panel :is(.cover_kind_loyalty, .cover_kind_diagram) {
  background: #262427;
}
.motion-panel .loyalty-map {
  max-width: 490px;
}
.motion-panel .cover .system-map {
  max-width: 330px;
}
.motion-panel_kind_service {
  align-self: stretch;
}

.motion-art__cut {
  animation: cut-drift var(--art-cycle) cubic-bezier(0.43, 0.02, 0.28, 1) infinite var(--art-play);
}
.motion-art__etch {
  animation: etch-drift var(--art-cycle) ease-in-out infinite var(--art-play);
}
.motion-art__tick {
  fill: none;
  stroke: #fff0df;
  stroke-width: 2;
  stroke-opacity: 0.86;
  stroke-dasharray: 0.17 1.14;
  stroke-dashoffset: 0.24;
  animation: rail-run var(--art-cycle) linear infinite var(--art-play);
  animation-delay: var(--art-trace-delay, 0ms);
}
.motion-art__tick.motion-art__tick_direction_reverse {
  animation-delay: -2.1s;
}
.motion-art__shards {
  animation: shard-jump var(--art-cycle) steps(1, end) infinite var(--art-play);
}
.motion-art_kind_signal .motion-art__cut {
  animation-direction: reverse;
}
.motion-art_kind_signal .motion-art__tick {
  stroke: #ff9c79;
}
.motion-art__mark {
  transform-box: fill-box;
  transform-origin: center;
  animation: mark-slip var(--art-cycle) cubic-bezier(0.25, 0.74, 0.24, 1) infinite var(--art-play);
}

.motion-panel .loyalty-map__sources span {
  position: relative;
}
.motion-panel .loyalty-map__sources::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 25%;
  height: 50%;
  width: 7px;
  border: 1px solid var(--map-rule);
  border-left: none;
}
.motion-panel .loyalty-map__sources::after {
  left: calc(100% + 7px);
  right: auto;
  width: calc(var(--map-gap, 20px) - 7px);
}
.motion-panel .loyalty-map__sources span::after,
.motion-panel .loyalty-map__output::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 3px;
  background: #ffaf87;
  transform: translate(-5px, -50%);
  opacity: 0;
  animation: map-packet var(--art-cycle) 0.25s linear infinite var(--art-play);
}
.motion-panel .loyalty-map__sources span::after {
  left: 100%;
}
.motion-panel .loyalty-map__sources span:nth-child(2)::after {
  animation-delay: 0.45s;
}
.motion-panel .loyalty-map__output::after {
  right: 100%;
  animation-delay: 1.35s;
}
.motion-panel .loyalty-map__balance {
  animation: map-receive var(--art-cycle) 0.88s ease-out infinite var(--art-play);
}
.motion-panel .loyalty-map__output {
  animation: map-receive var(--art-cycle) 1.84s ease-out infinite var(--art-play);
}
.motion-panel .system-map li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffac88;
  transform-origin: left;
  transform: scaleX(0);
  animation: node-run var(--art-cycle) var(--node-delay, 0s) ease-out infinite var(--art-play);
}
.motion-panel .system-map li:nth-child(2) {
  --node-delay: 0.67s;
}
.motion-panel .system-map li:nth-child(3) {
  --node-delay: 1.34s;
}
.motion-panel .system-map li:last-child::after {
  background: var(--paper);
}

@keyframes cut-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  23% {
    transform: translateX(-58px);
  }
  35%,
  43% {
    transform: translateX(-43px);
  }
  60%,
  68% {
    transform: translateX(52px);
  }
  76% {
    transform: translateX(39px);
  }
}
@keyframes etch-drift {
  0%,
  100% {
    transform: translate(0);
  }
  38% {
    transform: translate(31px, -18px);
  }
  72% {
    transform: translate(-20px, 13px);
  }
}
@keyframes rail-run {
  from {
    stroke-dashoffset: 0.24;
  }
  to {
    stroke-dashoffset: -1.07;
  }
}
@keyframes shard-jump {
  0%,
  28%,
  71%,
  100% {
    transform: translate(0);
    opacity: 0.64;
  }
  24%,
  66% {
    transform: translate(-19px, 3px);
    opacity: 1;
  }
  26%,
  69% {
    transform: translate(26px);
    opacity: 0.75;
  }
}
@keyframes mark-slip {
  0%,
  100% {
    transform: translate(0);
  }
  27% {
    transform: translate(-8px, 1px) scale(1.04);
  }
  45%,
  57% {
    transform: translate(4px, -2px) scale(0.98);
  }
  68% {
    transform: translate(10px, 1px) scale(1.03);
  }
  73% {
    transform: translate(6px, 1px) scale(1.03);
  }
}
@keyframes map-packet {
  0% {
    transform: translate(-5px, -50%);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  11% {
    transform: translate(5px, -50%);
    opacity: 1;
  }
  14%,
  100% {
    transform: translate(10px, -50%);
    opacity: 0;
  }
}
@keyframes map-receive {
  0%,
  22%,
  100% {
    outline: 2px solid transparent;
    outline-offset: 4px;
  }
  6%,
  14% {
    outline: 2px solid #ffab85;
    outline-offset: 3px;
  }
}
@keyframes node-run {
  0%,
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  16%,
  20% {
    transform: scaleX(1);
    opacity: 1;
  }
  26% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media (max-width: 840px) {
  .motion-panel .loyalty-map {
    --map-gap: 12px;
  }
}
@media (max-width: 680px) {
  .motion-panel__control {
    top: 8px;
    left: 8px;
  }
  .motion-panel .cover_kind_screen {
    min-height: 235px;
    padding: 19px;
  }
  .motion-panel .cover .loyalty-map {
    margin-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-panel *,
  .motion-panel *::before,
  .motion-panel *::after {
    animation: none !important;
  }
  .motion-panel__control {
    display: none;
  }
}
