body {
    background: #f9f9f9;
}
*, *::before, *::after {
    box-sizing: inherit;
}
html {
    box-sizing: border-box;
    scroll-padding-top: 75px;
}
.route-map-block {
    max-width: 900px;
    margin: 100px auto 0 auto;
    padding: 36px 26px 64px 26px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.route-title {
    font-family: 'Days One', Arial, sans-serif;
    font-size: 38px;
    color: #000000;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: 2px;
    animation: fadeInSlideDown 1.2s cubic-bezier(.25,.75,.45,1.1);
}
@keyframes fadeInSlideDown {
    0% { opacity: 0; transform: translateY(-60px) scale(0.95);}
    60% { opacity: 1; transform: translateY(8px) scale(1.07);}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}
.route-map {
    width: 100%;
    margin-bottom: 32px;
}
.route-photos-scheme {
    position: relative;
    width: 100%;
    height: 520px;
    margin-bottom: 36px;
}
.route-photo {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s;
    width: 210px;
}
.route-photo-1 { right: 110px; top: 60px; }
.route-photo-2 { left: 60px; top: 230px; }
.route-photo-3 { right: 110px; top: 390px; }
.route-photo span {
    margin-top: 10px;
    font-size: 20px;
    color: #222;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 190px;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    display: block;
}
.route-dash-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.photo-frame {
  width: 210px;
  height: 140px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.11);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: inherit;
  box-shadow: none;
  border: 4px solid #1730ef;
  background: #fff;
}
.route-photo:hover .photo-frame,
.route-photo:focus .photo-frame {
  transform: scale(1.10);
  box-shadow: 0 16px 48px rgba(23,48,239,0.22);
  border-color: #0f1f9b;
}
@media (max-width: 1050px) {
    .route-map-block { max-width: 99vw; padding: 3vw 1vw 4vw 1vw;}
    .route-map, .route-contacts, .route-photos-scheme { width: 99vw; }
    .route-title { font-size: 26px;}
    .photo-frame { width: 110px; height: 68px; }
    .route-photos-scheme { height: 270px; }
    .route-photo-1 { right: 30px; top: 20px; }
    .route-photo-2 { left: 20px; top: 100px; }
    .route-photo-3 { right: 30px; top: 125px; }
    .route-photo { width: 110px; }
    .route-photo span {
        font-size: 14px;
        max-width: 100px;
        padding: 0;
    }
}
@media (max-width: 700px) {
    .route-title { font-size: 18px;}
    .route-map-block { padding: 1vw 0.5vw 2vw 0.5vw;}
    .photo-frame { width: 70px; height: 44px; border-radius: 10px;}
    .route-photos-scheme { height: 120px; }
    .route-photo-1 { right: 10px; top: 7px; }
    .route-photo-2 { left: 8px; top: 35px; }
    .route-photo-3 { right: 10px; top: 65px; }
    .route-photo { width: 70px; }
    .route-photo span {
        font-size: 10px;
        max-width: 60px;
        padding: 0;
    }
}
.route-photos-diagonal {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin-top: 50px;
    min-height: 260px;
}
.photos-row {
    position: relative;
    width: 650px;
    height: 220px;
}
.photo-block {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s, transform 1s;
}
.photo-block.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.photo-block.left {
    left: 0;
    top: 70px;
}
.photo-block.right {
    right: 0;
    top: 0;
}
.photo-caption {
    margin: 10px 0 0 0;
    font-size: 22px;
    font-weight: 800;
    color: #181818;
    border-radius: 10px;
    padding: 6px 18px;
    box-shadow: 0 2px 8px #fff;
    text-align: center;
}
.photo-dash {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}
.photo-block:hover .photo-frame,
.photo-block:focus .photo-frame {
    transform: scale(1.10);
    box-shadow: 0 16px 48px rgba(23,48,239,0.22);
    border-color: #0f1f9b;
}
.photo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.photo-modal.active {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.photo-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.33);
  background: #fff;
  border: 6px solid #1730ef;
  margin-bottom: 10px;
}
.photo-modal-close {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #fff;
  font-size: 3.5rem;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 2px 12px #000;
  z-index: 10000;
  transition: color 0.2s;
}
.photo-modal-close:hover {
  color: #1730ef;
}
@media (max-width: 700px) {
  .photo-modal-img { max-width: 96vw; max-height: 60vh; }
  .photo-modal-close { top: 14px; right: 22px; font-size: 2.4rem; }
}
.site-footer {
    margin-top: 48px;
}
@media (max-width: 700px) {
  .route-photos-scheme {
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    position: static;
    margin-bottom: 18px;
  }
  .route-photo {
    position: static;
    width: 42vw;
    max-width: 130px;
    min-width: 80px;
    margin: 0 6px 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .photo-frame {
    width: 100%;
    height: 24vw;
    max-height: 90px;
    min-height: 48px;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .route-photo span {
    font-size: 11px;
    max-width: 90px;
    margin-top: 2px;
  }
  .route-dash-svg {
    display: none;
  }
  .route-photos-diagonal {
    min-height: unset;
    margin-top: 24px;
    padding-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .photos-row {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    position: static;
    height: auto;
  }
  .photo-block {
    position: static;
    width: 42vw;
    max-width: 130px;
    min-width: 80px;
    margin: 0 6px 18px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1 !important;
    transform: none !important;
  }
  .photo-block .photo-frame {
    width: 100%;
    height: 24vw;
    max-height: 90px;
    min-height: 48px;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .photo-caption {
    font-size: 11px;
    max-width: 90px;
    margin-top: 2px;
    padding: 0;
    box-shadow: none;
  }
  .photo-dash {
    display: none;
  }
}
@media (max-width: 700px) {
  .photos-row {
    display: flex;
    flex-direction: row;
  }
  .photo-block.left {
    order: 2;
  }
  .photo-block.right {
    order: 1;
  }
}