/* SEO route pages (/ru/routes/*). Loaded after landing-shared.css. */
.route-page {
  --route-ink: #1e2832;
  --route-blue: #3d7a96;
  background: #f7f2ed;
  color: #2f3e47;
}
/* Marmelad for all text, overriding the system stacks in landing-shared.css. */
.route-page,
.route-page * {
  font-family: 'Marmelad', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.route-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 20px 56px;
}
.route-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #5b6b75;
  margin-bottom: 20px;
}
.route-breadcrumbs a,
.route-section a:not(.btn-store) {
  color: #2f3e47;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.route-hero h1 {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--route-ink);
}
.route-intro {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.route-free {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.route-section .route-channels {
  margin: 20px 0 0;
}
.route-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Store buttons take the two ends of the route line: blue start, orange finish. */
.route-page .btn-store.ios {
  background: #1e7c98;
  color: #fff;
}
.route-page .btn-store.android {
  background: #e07b45;
  color: #1e2832;
}
.route-page .btn-store .btn-store-sub,
.route-page .btn-store .btn-store-name {
  color: inherit;
}
.route-page .btn-store-icon {
  fill: currentColor;
}
.route-stores .btn-store.ios {
  position: relative;
}
.route-stores .btn-store.ios::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, #1e7c98, #e07b45);
}
.route-section {
  margin-top: 56px;
}
.route-section h2 {
  font-size: clamp(24px, 4.5vw, 30px);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--route-ink);
}
.route-section h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--route-ink);
}
.route-section h4 {
  font-size: 16px;
  margin: 18px 0 6px;
  color: var(--route-ink);
}
.route-section p,
.route-section li {
  font-size: 16px;
  line-height: 1.65;
}
.route-section p {
  margin: 0 0 12px;
}
.route-section ul,
.route-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.route-section ul {
  list-style: disc;
}
.route-section ol {
  list-style: decimal;
}
.route-section li {
  margin-bottom: 8px;
}
.route-trips,
.route-travel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.route-direction {
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
}
.route-section .route-trip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.route-section .route-trip {
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid #ede8e1;
}
.route-section .route-trip:first-child {
  border-top: 0;
  padding-top: 0;
}
.route-trip-date {
  display: block;
  font-size: 14px;
  color: #5b6b75;
  margin-bottom: 8px;
}
/* Same route line as the trip cards on the app's welcome screen. */
.route-trip-stops {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.route-trip-stops::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(#1e7c98, #e07b45);
}
.route-trip-stop {
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}
.route-trip-stop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e7c98;
}
.route-trip-stop.via {
  font-size: 14px;
  color: #5b6b75;
}
.route-trip-stop.via::before {
  left: 2px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: #8fb7c6;
}
.route-trip-stop.to::before {
  background: #e07b45;
}
.route-empty {
  color: #5b6b75;
}
.route-section .route-trip .route-trip-date:last-child:not(:first-child) {
  margin: 8px 0 0;
}
#trips > .route-flight-source {
  margin-bottom: 14px;
}
.route-section .route-app-link {
  margin: 16px 0 8px;
}
.route-section a.route-app-btn {
  display: inline-block;
  background: #1e7c98;
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 30px;
}
.route-section .route-flight-link {
  margin: 14px 0 2px;
}
.route-section .route-flight-source {
  font-size: 13px;
  line-height: 1.45;
  color: #5b6b75;
  margin: 0;
}
.route-rules {
  background: #fff;
  border-left: 4px solid #e07b45;
  border-radius: 14px;
  padding: 24px;
}
.route-section .route-rules-lead {
  font-size: 18px;
  color: var(--route-ink);
}
.route-cta {
  background: #2f3e47;
  border-radius: 14px;
  padding: 28px 24px;
  color: #f7f2ed;
}
.route-section.route-cta h2,
.route-section.route-cta p {
  color: #f7f2ed;
}
.route-faq .faq-item h3 {
  font-size: 17px;
}
.route-faq .faq-item p {
  font-size: 15px;
  color: #2f3e47;
  margin: 0;
}
.route-related ul {
  list-style: none;
  padding: 0;
}
/* Desktop side stack. Hidden until route-page.js adds html.mobile-cta-on; the bar takes over on phones. */
.route-side {
  display: none;
}
@media (min-width: 801px) {
  .route-side {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    transform: translate(100%, -50%);
    visibility: hidden;
    transition: transform 200ms ease;
  }
  html.mobile-cta-on .route-side {
    transform: translate(0, -50%);
    visibility: visible;
  }
}
@media (min-width: 801px) and (max-width: 1040px) {
  .route-main {
    padding-right: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-side {
    transition: none;
  }
}
.route-side-label {
  background: #fff;
  border-radius: 12px 0 0 12px;
  padding: 6px 10px;
  font-size: 14px;
  color: #1e2832;
  box-shadow: 0 2px 10px rgba(30, 40, 50, 0.12);
}
.route-side-line {
  width: 2px;
  height: 18px;
  margin-right: 24px;
  background: linear-gradient(#1e7c98, #e07b45);
}
.route-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 56px;
  padding-left: 6px;
  border-radius: 28px 0 0 28px;
  box-shadow: 0 2px 10px rgba(30, 40, 50, 0.18);
  transition: width 150ms ease;
}
.route-side-btn:hover {
  width: 60px;
}
.route-side-btn.ios {
  background: #1e7c98;
  color: #fff;
}
.route-side-btn.android {
  background: #e07b45;
  color: #1e2832;
}
@media (max-width: 720px) {
  .route-stores .btn-store.ios::after {
    display: none;
  }
  .route-main {
    padding: 84px 16px 40px;
  }
  .route-trips,
  .route-travel {
    grid-template-columns: 1fr;
  }
  .route-section {
    margin-top: 44px;
  }
  .route-direction {
    padding: 18px;
  }
  .route-stores .btn-store {
    flex: 1 1 150px;
    justify-content: center;
  }
}

/* "Подробнее" link from a route page to its blog article. */
.route-section .route-more {
  margin: 4px 0 24px;
}

/* Blog articles (/ru/blog/*): same page as a route, with a reading column. */
.article-meta {
  font-size: 14px;
  color: #5b6b75;
  margin: 0;
}
.article-body {
  margin-top: 32px;
}
.article-body > p,
.article-body > ol li,
.article-body > ul li {
  font-size: 17px;
  line-height: 1.7;
}
.article-body > p {
  margin: 0 0 14px;
}
.article-body > ol,
.article-body > ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.article-body > ol {
  list-style: decimal;
}
.article-body > ol li {
  margin-bottom: 10px;
}
.article-body a {
  color: #2f3e47;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Partner card in an article (scripts/site/partners.config.js): a recommendation, set apart from the text. */
.article-partner {
  margin: 24px 0 8px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e4d9cf;
  border-left: 4px solid var(--route-blue);
  border-radius: 14px;
}
.route-section .article-partner h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--route-ink);
}
.article-partner-label {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6eff3;
  color: var(--route-blue);
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}
.route-section .article-partner p {
  margin: 0 0 8px;
  font-size: 16px;
}
.route-section .article-partner .article-partner-contacts a {
  color: var(--route-blue);
  white-space: nowrap;
}
.route-section .article-partner .article-partner-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #5b6b75;
}
.article-stores {
  margin-top: 28px;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.article-table th,
.article-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #ede8e1;
}
.article-table thead th,
.article-table thead td {
  border-top: 0;
  color: var(--route-ink);
}
.article-table thead th:last-child,
.article-table tbody td:last-child {
  background: rgba(30, 124, 152, 0.06);
}
.article-table tbody th {
  color: var(--route-ink);
  width: 22%;
}
/* Phones: one card per row, each cell labelled with its column. No sideways scrolling. */
@media (max-width: 720px) {
  .article-table,
  .article-table tbody,
  .article-table tr,
  .article-table th,
  .article-table td {
    display: block;
    width: auto;
  }
  .article-table thead {
    display: none;
  }
  .article-table {
    background: transparent;
    border-radius: 0;
  }
  .article-table tr {
    background: #fff;
    border-radius: 14px;
    padding: 6px 0;
    margin-bottom: 12px;
  }
  .article-table tbody th {
    width: auto;
    border-top: 0;
    font-size: 16px;
  }
  .article-table td {
    padding: 8px 14px;
  }
  .article-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: #5b6b75;
    margin-bottom: 2px;
  }
  .article-table tbody td:last-child {
    border-radius: 0 0 14px 14px;
  }
  .article-body > p,
  .article-body > ol li {
    font-size: 16px;
  }
}

/* /ru/blog/ and /ru/routes/ */
.route-section .site-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.route-section .site-list-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.route-section .site-list-item h2 {
  font-size: 21px;
  margin: 0 0 6px;
}
.route-section .site-list-date {
  font-size: 14px;
  color: #5b6b75;
  margin: 0 0 8px;
}
.route-section .site-list-item p:last-child {
  margin: 0;
}
