.ny-route[hidden],
.ny-route-fab[hidden] {
  display: none !important;
}

.ny-route {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 21, 23, 0.69);
  font-family: Arial, Helvetica, sans-serif;
}

.ny-route,
.ny-route * { box-sizing: border-box; }

body.ny-route-lock {
  overflow: hidden;
}

body.ny-route-lock .ny-route-fab { display: none !important; }

.ny-route__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  width: min(1044px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  color: #174b39;
  background: #fffaf0;
  border-radius: 18px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  outline: none;
}

.ny-route__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #243632;
  font: 400 31px/1 Arial, sans-serif;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ny-route__visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #e9e3d3;
  border-radius: 18px 0 0 18px;
}

.ny-route__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.ny-route__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ny-route__marker {
  position: absolute;
  z-index: 2;
  padding: 8px 13px;
  color: #174b39;
  font: 700 15px/1 Arial, sans-serif;
  white-space: nowrap;
  background: #fffaf0;
  border: 2px solid #277b5d;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(12, 56, 41, 0.2);
  cursor: pointer;
}

.ny-route__marker::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  content: "";
  background: #fffaf0;
  border-right: 2px solid #277b5d;
  border-bottom: 2px solid #277b5d;
  transform: translateX(-50%) rotate(45deg);
}

.ny-route__marker[data-route="dacha"] { left: 21%; top: 21%; }
.ny-route__marker[data-route="city"] { right: 17%; top: 22%; }
.ny-route__marker[data-route="parents"] { right: 10%; bottom: 23%; }
.ny-route__marker.is-active { color: #fff; background: #1d6a4d; }
.ny-route__marker.is-active::after { background: #1d6a4d; }

.ny-route__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 72px 42px 40px;
}

.ny-route__title {
  margin: 0 0 14px;
  color: #174b39;
  font: 700 clamp(34px, 3.25vw, 48px)/0.98 Arial, sans-serif;
  letter-spacing: -0.045em;
}

.ny-route__amount {
  display: block;
  margin-top: 8px;
  font-size: clamp(53px, 5.2vw, 74px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.ny-route__copy {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.35;
}

.ny-route__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1px 0 15px;
}

.ny-route__choice,
.ny-route__cta {
  min-height: 43px;
  border-radius: 12px;
  cursor: pointer;
}

.ny-route__choice {
  padding: 8px 14px;
  color: #174b39;
  font: 700 14px/1 Arial, sans-serif;
  background: #eaf1e5;
  border: 1px solid #7f9c87;
}

.ny-route__choice.is-active {
  color: #fff;
  background: #1d6a4d;
  border-color: #1d6a4d;
}

.ny-route__cta {
  align-self: flex-start;
  padding: 12px 20px;
  color: #fff;
  font: 700 17px/1 Arial, sans-serif;
  background: #1d6a4d;
  border: 0;
}

.ny-route__period {
  margin: auto 0 0;
  padding-top: 24px;
  color: #5f6e66;
  font-size: 13px;
  line-height: 1.35;
}

.ny-route-fab {
  position: fixed;
  right: 20px;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 22px));
  z-index: 2147481000;
  width: 58px;
  height: 58px;
  padding: 6px;
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 52, 38, 0.34);
  cursor: pointer;
}

.ny-route-fab img { display: block; width: 100%; height: 100%; }

.ny-route button:focus-visible,
.ny-route a:focus-visible,
.ny-route-fab:focus-visible {
  outline: 3px solid #f4cb54;
  outline-offset: 3px;
}

.ny-route__dialog:focus { outline: none; }

@media (max-width: 720px) {
  .ny-route { padding: 12px; align-items: center; }
  .ny-route__dialog {
    display: block;
    width: min(416px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .ny-route__visual { min-height: 0; aspect-ratio: 1.52; border-radius: 16px 16px 0 0; }
  .ny-route__map { min-height: 0; }
  .ny-route__content { min-height: 330px; padding: 24px 20px 23px; }
  .ny-route__title { font-size: 34px; }
  .ny-route__amount { font-size: 54px; }
  .ny-route__copy { font-size: 17px; }
  .ny-route__marker { padding: 6px 9px; font-size: 11px; }
  .ny-route__marker[data-route="dacha"] { left: 17%; top: 18%; }
  .ny-route__marker[data-route="city"] { right: 13%; top: 18%; }
  .ny-route__marker[data-route="parents"] { right: 5%; bottom: 20%; }
  .ny-route__close { top: 9px; right: 9px; width: 38px; height: 38px; }
  .ny-route-fab { right: 14px; width: 54px; height: 54px; }
}

@media (max-width: 340px) {
  .ny-route__content { padding: 20px 15px; }
  .ny-route__title { font-size: 29px; }
  .ny-route__copy { font-size: 15px; }
  .ny-route__choice { padding-inline: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ny-route *, .ny-route-fab { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
