.route-setup {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.header.over-route {
  color: #fff;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(to bottom, #101918c9, #10191885 64%, transparent);
}

.header.over-route .mobile-careers {
  color: white;
  border-color: #fff9;
}
.header.over-route .nav-count {
  color: inherit;
  background: #2228;
}
.header.over-route nav a:after {
  background: white;
}
.header.over-route .header-action {
  background: #1b201cd9;
  color: white;
}

.city-route {
  --enter: 96svh;
  --travel: 215svh;
  --route-anchor: -95px;
  --canvas: 100svh;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #141312;
  scroll-margin-top: var(--route-anchor);
}
.tour-stage {
  position: relative;
}
.city-route.is-live {
  height: calc(var(--canvas) + var(--enter) + var(--travel));
}
.is-live .tour-stage {
  position: sticky;
  top: 0;
  height: var(--canvas);
  overflow: clip;
}
.route-city,
.route-screen {
  height: var(--canvas);
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.is-live .route-city {
  position: absolute;
  inset: 0;
}
.route-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
.route-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #111817d9, transparent 59%);
}
.route-copy {
  position: absolute;
  bottom: clamp(30px, 7svh, 94px);
  inset-inline: var(--pad);
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: end;
}
.route-copy h2,
.floor-name {
  grid-column: 1/-1;
  margin: 0;
  font:
    500 min(13.25vw, 24svh) / 1 Arial,
    sans-serif;
  letter-spacing: -0.072em;
}
.route-copy h2 span {
  color: #e76754;
}
.route-copy p {
  margin: 0;
}
.route-next {
  display: inline-flex;
  gap: 17px;
  align-items: center;
  width: max-content;
  min-height: 44px;
  border-bottom: 1px solid #fffb;
  color: white;
}
.tour-marker {
  position: absolute;
  left: 0;
  top: var(--canvas);
  height: 1px;
  width: 1px;
  scroll-margin-top: var(--route-anchor);
  pointer-events: none;
}
.is-live .tour-marker {
  top: var(--enter);
}
.city-route .cinema {
  position: relative;
  height: max(550px, var(--canvas));
  overflow: hidden;
  width: 100%;
  background: #161914;
}
.city-route.is-live .cinema {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: var(--reveal, 0);
}
.city-route .cin-pin {
  position: relative;
  inset: auto;
  height: 100%;
  width: 100%;
  display: block;
}
.city-route .cin-frame {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
}
.city-route .cin-picture {
  aspect-ratio: auto;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  z-index: 0;
  mask-image: none;
}
.city-route .cin-picture img,
.city-route .cin-picture video {
  object-fit: cover;
  object-position: 50% 50%;
}
.city-route.is-live .cin-picture {
  transform: scale(var(--approach, 1));
}
.city-route.is-live .cinema {
  mask-image: radial-gradient(ellipse closest-side, #000 56%, transparent 100%);
  mask-size: var(--aperture, 105%) var(--aperture, 105%);
  mask-position: 54% 50%;
  mask-repeat: no-repeat;
}
.city-route.is-live .route-copy {
  opacity: var(--city-type, 1);
}
.city-route.is-live .cinema :is(.cut-captions, .cin-slate, .cin-edit) {
  opacity: var(--film-type, 0);
}
.city-route .cin-frame:after {
  content: "";
  display: block;
  z-index: 0;
  background:
    linear-gradient(
      0deg,
      #070c0cf0,
      rgba(7, 11, 10, 0.55) 23%,
      transparent 55%
    ),
    linear-gradient(90deg, #0b120e33, transparent 60%);
  pointer-events: none;
}
.city-route .cin-slate {
  position: absolute;
  inset: calc(var(--film-top) + 12px) var(--pad) auto;
  padding: 0;
  z-index: 4;
}
.city-route .cin-slate .cin-studio {
  font-size: 12px;
  text-shadow: 0 1px 6px #000;
}
.city-route .cut-captions,
.city-route .cinema.is-cinema .cut-captions {
  display: block;
  position: absolute;
  inset: auto var(--pad) clamp(126px, 17svh, 180px);
  width: auto;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}
.city-route .cut-copy:not([hidden]) {
  display: block;
}
.city-route .cut-copy h3,
.city-route .cinema.is-cinema .cut-copy h3 {
  font-size: clamp(48px, min(7.6vw, 13svh), 138px);
  line-height: 0.98;
  letter-spacing: -0.069em;
  margin: 0;
  display: block;
}
.city-route .cut-copy h3 br {
  display: none;
}
.city-route .cut-copy h3 em:before {
  content: none;
}
.city-route .cut-copy p,
.city-route .cinema.is-cinema .cut-copy p {
  display: block;
  margin: 9px 0 0;
  padding: 0;
  max-width: 51ch;
  font: 400 clamp(14px, 1.15vw, 18px) / 1.4 Arial;
  color: #fff;
}
.city-route .cin-edit {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  background: transparent;
  padding: 0 var(--pad) max(14px, env(safe-area-inset-bottom));
}
.city-route .cin-strip button {
  background: transparent;
}
.city-route .cin-strip img {
  max-height: 54px;
  object-fit: cover;
}
.city-route .route-copy,
.city-route .cin-slate,
.city-route .cin-edit {
  transition: none;
}
.city-route:not(.is-live) .route-city {
  position: relative;
}
.city-route .cinema:not(.is-cinema) {
  height: auto;
  min-height: var(--canvas);
}
.city-route .cinema:not(.is-cinema) .cin-frame {
  position: relative;
}
.city-route .cinema:not(.is-cinema) .cut-captions {
  position: relative;
  inset: auto;
  padding: 140px var(--pad) 44px;
}
@media (max-width: 760px) {
  .city-route {
    --route-anchor: -78px;
    --travel: 245svh;
  }
  .route-photo {
    object-position: 36% 15%;
  }
  .route-copy {
    grid-template-columns: 1fr;
  }
  .route-copy h2 {
    font-size: min(13.5vw, 18svh);
  }
  .city-route .cinema.is-cinema .cut-captions {
    bottom: clamp(110px, 16svh, 152px);
  }
  .city-route .cinema.is-cinema .cut-copy h3 {
    font-size: clamp(40px, 11vw, 72px);
  }
  .city-route .cinema.is-cinema .cut-copy p {
    font-size: 14px;
    max-width: 36ch;
  }
  .city-route .cin-strip img {
    max-height: 32px;
  }
  .city-route .cin-strip button {
    min-height: 44px;
  }
}
@media (min-width: 701px) and (max-width: 760px) {
  .city-route {
    --route-anchor: -95px;
  }
}
@media (max-height: 520px) {
  .city-route .cinema {
    height: max(430px, 100svh);
  }
  .city-route .cinema.is-cinema .cut-captions {
    bottom: 106px;
  }
  .city-route .cinema.is-cinema .cut-copy h3 {
    font-size: 38px;
  }
}
#ladoga-case {
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
#ladoga-case p {
  margin: 0.6em 0;
}
#ladoga-case a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.equipment-stack details {
  border-bottom: 1px solid var(--line);
}
.equipment-stack summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font:
    400 clamp(26px, 3.5vw, 56px) / 1 Arial,
    sans-serif;
  letter-spacing: -0.05em;
}
.equipment-stack summary::-webkit-details-marker {
  display: none;
}
.equipment-stack summary span:after {
  content: "+";
  font: 300 22px/1 Arial;
}
.equipment-stack details[open] summary span:after {
  content: "−";
}
.equipment-stack details p {
  font: 500 14px/1.5 Arial;
  margin: 0;
  color: var(--ink);
}
.equipment-stack details ul {
  padding: 0 0 18px 1.15em;
  margin: 0.7em 0 0;
  font: 400 15px/1.6 Arial;
}
.process-track {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
#expertise .process-scene--illustration > .process-image {
  object-fit: cover;
  object-position: center;
  filter: none;
  padding: 0;
}
#process-dialog .process-full-scene--illustration .process-image {
  object-fit: contain;
}
.process-full-scene--illustration:after {
  content: "Иллюстрация процесса";
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 3px 7px;
  background: #181a15ba;
  color: white;
  font: 12px/1.5 Arial;
}
@media (max-width: 760px) {
  #expertise .tech-list {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0 19px;
    padding: 0 1px;
  }
  #expertise .tech-list::-webkit-scrollbar,
  .process-track::-webkit-scrollbar {
    display: none;
  }
  #expertise .tech-list .tech-item {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
  }
  #expertise .process-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  #expertise .process-track .process-scene {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    scroll-snap-align: start;
    visibility: visible;
    opacity: 1;
    transition: none;
    pointer-events: auto;
  }
  #expertise .process-track .process-scene > .process-image {
    transform: none;
  }
  #expertise #competence-visual {
    width: 100%;
    aspect-ratio: 1.38;
    overflow: hidden;
  }
  #expertise #competence-visual:before {
    display: none;
  }
  #expertise .process-track rt-film {
    align-self: center;
  }
  #expertise .tech-visual .inspect-source {
    top: 8px;
    right: 10px;
    z-index: 4;
  }
  #expertise .process-caption {
    inset: auto 13px 15px;
    z-index: 2;
  }
  #expertise .process-caption h3 {
    font-size: clamp(22px, 6.3vw, 34px);
    margin-bottom: 6px;
  }
  #expertise [data-kind="film"] .process-caption {
    bottom: 48px;
  }
  .equipment-stack summary {
    font-size: 32px;
  }
}
@media (min-width: 761px) {
  #expertise #competence-visual .process-track {
    grid-area: 1/1/2/-1;
  }
  #expertise #competence-visual .process-caption {
    z-index: 1;
  }
}
@media (max-width: 760px) {
  #expertise .tech-list .tech-item {
    width: auto;
  }
  #expertise #competence-visual {
    display: block;
  }
  #expertise #competence-visual #inspect-process {
    position: absolute;
    inset: 8px 8px auto auto;
    grid-area: auto;
    max-width: none;
    min-height: 38px;
    margin: 0;
    background: #111a16d9;
  }
  #expertise #competence-visual .process-caption {
    position: absolute;
    inset: auto 0 0;
    grid-area: auto;
    min-height: 0;
    pointer-events: none;
    padding: 26px 13px 10px;
    background: linear-gradient(transparent, #0a100ee8);
  }
  #expertise #competence-visual[data-kind="film"] .process-caption {
    bottom: auto;
    top: 0;
    padding: 12px 112px 15px 13px;
    background: linear-gradient(#101813bb, transparent);
  }
  #expertise #competence-visual .process-caption h3 {
    font-size: clamp(21px, 5.6vw, 30px);
  }
}

.pan-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
@media (max-width: 760px) {
  .city-route {
    --enter: 216svh;
  }
  .route-screen {
    background: #172021;
  }
  .route-screen:after {
    background: linear-gradient(0deg, #172021 5%, #172021e8 17%, #17202100 36%);
    pointer-events: none;
  }
  .pan-window {
    top: var(--film-top);
    bottom: 14%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pan-window::-webkit-scrollbar {
    display: none;
  }
  .is-live .pan-window {
    touch-action: pan-y pinch-zoom;
    overflow: hidden;
  }
  .pan-window .route-panorama {
    position: static;
    display: block;
    height: 100%;
    width: auto;
    min-width: 100%;
    max-width: none;
    object-fit: cover;
  }
  .route-copy {
    bottom: max(4svh, env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .route-copy a {
    pointer-events: auto;
  }
}

.competence-runway,
.competence-pin {
  display: contents;
}
.rail-controls,
.card-story {
  display: none;
}
#expertise .card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-items: center;
}
#expertise .card-media > .process-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: none;
}
@media (max-width: 760px) {
  #expertise {
    overflow: visible;
    padding-bottom: 20px;
  }
  #expertise + #restoration-lab {
    padding-top: 28px;
  }
  #expertise .expertise-layout {
    display: block;
  }
  #expertise .tech-list,
  #expertise .process-summary,
  #expertise
    #competence-visual
    > :is(.process-caption, .inspect-source, .process-shade) {
    display: none;
  }
  .competence-runway {
    display: block;
    position: relative;
    margin-inline: calc(0px - var(--pad));
    --rail-gap: 0px;
    --card-width: 100%;
  }
  .competence-pin {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 16px;
  }
  .rail-gesture .competence-pin {
    touch-action: pinch-zoom;
    user-select: none;
  }
  #expertise #competence-visual {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    background: transparent;
    overflow: visible;
  }
  #expertise #competence-visual .process-track {
    display: flex;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    gap: var(--rail-gap);
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    isolation: isolate;
  }
  #expertise .rail-gesture #competence-visual .process-track {
    overflow-x: hidden;
    scroll-snap-type: none;
    touch-action: pinch-zoom;
    user-select: none;
  }
  #expertise .rail-stack #competence-visual .process-track {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    gap: 20px;
  }
  #expertise .rail-stack #competence-visual .process-scene {
    grid-area: auto;
    scroll-margin-top: var(--rail-top);
  }
  .rail-stack .rail-controls {
    display: none;
  }
  #expertise .process-track .process-scene {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    height: auto;
    min-height: 0;
    overflow: hidden;
    inset: auto;
    scroll-snap-align: start;
    border-top: 1px solid #8d9087;
    border-bottom: 1px solid #bfc2b8;
    background: #eeeee8;
    color: #1d211d;
    pointer-events: auto;
  }
  #expertise .process-track .process-scene {
    scroll-snap-stop: always;
  }
  #expertise .card-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    flex: none;
    background: #242923;
  }
  #expertise .card-media > rt-film {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  #expertise .process-scene--illustration .card-media {
    aspect-ratio: 1024/687;
  }
  #expertise .card-media > .process-image,
  #expertise .card-media rt-film > :is(img, video) {
    object-fit: cover;
    padding: 0;
  }
  .card-story {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px var(--pad);
    gap: 8px;
  }
  #expertise .card-story h3 {
    margin: 0;
    font:
      500 clamp(24px, 6.6vw, 34px) / 1.02 Arial,
      sans-serif;
    letter-spacing: -0.05em;
  }
  #expertise .card-story p {
    margin: 0;
    font:
      400 clamp(13px, 3.55vw, 16px) / 1.45 Arial,
      sans-serif;
    color: #3b4037;
  }
  .card-inspect {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
    border-bottom: 1px solid #878b80;
  }
  .rail-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline: var(--pad);
  }
  .rail-exit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    font-size: 12px;
    min-height: 44px;
  }
  .rail-exit[hidden] {
    display: none;
  }
  .rail-position {
    margin-right: auto;
    color: #4c5148;
    font: 500 13px/1.3 Arial;
    font-variant-numeric: tabular-nums;
  }
  .rail-controls button {
    width: 46px;
    height: 44px;
    border: 1px solid #8b8e83;
    color: #21251e;
    font: 23px/1 Arial;
  }
  .rail-controls button:disabled {
    opacity: 0.3;
  }
  .rail-controls button:focus-visible,
  .card-inspect:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}
@media (max-width: 700px) {
  #process-dialog .process-full-scene--illustration {
    height: auto;
    min-height: 0;
    aspect-ratio: 1024/687;
  }
  #process-dialog .process-full-scene--illustration .process-image {
    object-fit: cover;
    padding: 0;
  }
}
@media (max-width: 760px) and (max-height: 680px) {
  .competence-pin {
    padding: 6px 0 8px;
    gap: 5px;
  }
  #expertise .card-story p {
    font-size: 13px;
  }
}

.cin-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid #fff7;
  border-radius: 50%;
  background: #141312b8;
  font-size: 16px;
  cursor: pointer;
}
.cin-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
.cin-status {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: white;
}
.cin-status[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .city-route .cin-frame {
    touch-action: pan-y pinch-zoom;
  }
  .city-route .cinema.is-cinema .cut-captions {
    bottom: clamp(134px, 18svh, 170px);
  }
  .city-route .cin-transport {
    gap: 9px;
  }
}
