/* Route pages (/charter/…) and the routes hub: the hero with a photo, the boarding-pass summary, aircraft by class,
   what the price includes, the flight day, questions and the request form. Tokens and shared parts live in site.css. */

.route-page { padding-bottom: 0; }
.route-block { margin-top: clamp(64px, 9vw, 120px); }
.route-block > h2, .route-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.route-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.route-head .lead { margin: 0; max-width: 52ch; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 clamp(20px, 3vw, 30px); padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: '›'; margin-right: 10px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--zenith); }

/* hero */
.route-hero { display: grid; gap: 28px; }
.route-hero h1 { font-size: clamp(32px, 10vw, 72px); line-height: 0.98; letter-spacing: -0.045em; }
.route-hero .lead { margin: 22px 0 28px; max-width: 44ch; }
.route-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.route-hero__media { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--mist-2); }
.route-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-hero__note { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 18, 41, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; }

/* the boarding-pass summary under the hero */
.route-pass { margin-top: clamp(28px, 4vw, 48px); padding: 24px clamp(20px, 3vw, 34px); border-radius: 28px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(10, 18, 41, 0.45); }
/* in the pass the airport names may break: the card is narrow on phones */
.route-pass .pass { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.route-pass .pass__city .nw { white-space: normal; }
.trip-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.trip-facts dt { font-size: 13px; color: var(--ink-3); }
.trip-facts dd { margin: 4px 0 0; font: 500 19px/1.25 var(--display); letter-spacing: -0.015em; }

/* aircraft by class: a real table, laid out as rows of cards on phones */
.fleet-table { width: 100%; border-collapse: collapse; }
.fleet-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fleet-table thead { display: none; }
.fleet-table tbody { display: grid; gap: 10px; }
.fleet-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.fleet-table td { padding: 0; }
.fleet-table .t-class { font: 500 19px/1.25 var(--display); letter-spacing: -0.015em; }
.fleet-table .t-types { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.fleet-table .t-meta { grid-column: 1; font-size: 14px; color: var(--ink-3); }
.fleet-table .t-price { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; font: 500 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--zenith); white-space: nowrap; }
.fleet-table .t-price small { display: block; margin-top: 2px; font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.t-seats, .t-time { display: none; }
.fleet-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 22px; }
.fleet-more p { margin: 0; max-width: 62ch; font-size: 15px; color: var(--ink-2); }

/* what the price includes: the warm panel */
.route-includes { display: grid; gap: 0; margin: 0; padding: 6px 26px; border-radius: 26px; background: var(--sand); }
.route-includes div { padding: 20px 0; }
.route-includes div + div { border-top: 1px solid rgba(91, 70, 40, 0.14); }
.route-includes dt { margin-bottom: 6px; font: 500 19px/1.3 var(--display); letter-spacing: -0.015em; }
.route-includes dd { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* the destination and the flight day */
.route-split { display: grid; gap: clamp(28px, 5vw, 80px); }
.route-split h2 { font-size: clamp(30px, 3.6vw, 52px); }
.route-split p { color: var(--ink-2); max-width: 58ch; }
.route-split p.lead { margin: 18px 0 14px; color: var(--ink-2); }
.route-split h3 { margin-bottom: 14px; }
.nw { white-space: nowrap; }
.route-day { list-style: none; margin: 0; padding: 0; }
.route-day li { padding: 18px 0; border-top: 1px solid var(--line); }
.route-day li:last-child { border-bottom: 1px solid var(--line); }
.route-day strong { display: block; margin-bottom: 4px; font: 500 19px/1.3 var(--display); letter-spacing: -0.015em; }
.route-day li > span { font-size: 15px; color: var(--ink-2); }

/* questions */
.route-faq .qa__body p { padding-right: 0; }

/* request form */
.route-request { padding: clamp(26px, 4vw, 52px); border-radius: 32px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 40px 80px -50px rgba(10, 18, 41, 0.45); }
.route-request h2 { font-size: clamp(30px, 3.6vw, 52px); }
.route-request .lead { margin: 14px 0 24px; }
.route-request .form-grid { margin: 0 0 16px; }
.route-request .check { margin-bottom: 18px; }
.route-request .btn { height: 58px; border-radius: 18px; }
.route-done { padding: 22px 24px; border-radius: 20px; background: var(--mist); outline: none; }
.route-done h3 { margin-bottom: 8px; }
.route-done p { margin: 0 0 12px; color: var(--ink-2); }

/* other routes */
.route-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.route-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: color 0.3s, padding 0.5s var(--ease-out); }
.route-links a:hover, .route-links a:focus-visible { color: var(--zenith); padding-left: 12px; padding-right: 12px; }
.route-links strong { font: 500 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.route-links a > span { grid-column: 1; font-size: 14px; color: var(--ink-3); }
.route-links b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 17px/1.2 var(--display); color: var(--zenith); white-space: nowrap; }

/* the hub: route cards with photos */
.hub-group + .hub-group { margin-top: clamp(48px, 6vw, 80px); }
.hub-group h2 { margin-bottom: 22px; font-size: clamp(26px, 2.8vw, 40px); }
.hub-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hub-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--line); color: inherit; text-decoration: none; transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.hub-card:hover, .hub-card:focus-visible { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 26px 50px -36px rgba(10, 18, 41, 0.45); }
.hub-card__img { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 16px; background: var(--mist-2); }
.hub-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-card__text { display: block; min-width: 0; }
.hub-card strong { display: block; font: 500 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hub-card__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.hub-card b { display: block; margin-top: 6px; font: 500 16px/1.2 var(--display); color: var(--zenith); }

/* slim footer additions: popular routes */
.footer__routes { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer__routes a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer__routes a:hover { color: var(--zenith); }
.site-footer--slim .footer__entity { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.site-footer--slim .footer__entity:empty { display: none; }

@media (min-width: 761px) {
  .trip-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .route-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
  .route-hero h1 { font-size: clamp(44px, 4.6vw, 72px); }
  .route-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .fleet-table { display: table; }
  .fleet-table thead { display: table-header-group; }
  .fleet-table tbody { display: table-row-group; }
  .fleet-table tr { display: table-row; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .fleet-table th { padding: 0 16px 12px 0; font: 400 13px/1.3 var(--sans); color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--line); }
  .fleet-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .fleet-table th:last-child, .fleet-table td:last-child { padding-right: 0; text-align: right; }
  .fleet-table .t-meta { display: none; }
  .t-seats, .t-time { display: table-cell; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
  .fleet-table .t-price small { display: none; }
}
@media (min-width: 1100px) {
  .hub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- guides (/guide/…): a readable article, a short summary, worked price examples and a side panel ---------- */
.guide-page .route-hero h1 { font-size: clamp(31px, 8.6vw, 56px); line-height: 1.02; }
.guide-layout { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(48px, 7vw, 96px); }
.guide-article { min-width: 0; max-width: 760px; }

.guide-summary { padding: 22px 24px 20px; border-radius: 26px; background: var(--sand); }
.guide-summary h2 { margin: 0 0 10px; font: 500 20px/1.2 var(--display); letter-spacing: -0.015em; }
.guide-summary ul { margin: 0; padding-left: 1.15em; }
.guide-summary li { padding: 4px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.guide-summary li::marker { color: #c99a52; }

.guide-body { font-size: 17px; line-height: 1.65; }
.guide-body h2 { margin: clamp(40px, 5vw, 56px) 0 14px; font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--display); letter-spacing: -0.025em; }
.guide-body h3 { margin: 28px 0 8px; font: 500 20px/1.3 var(--display); letter-spacing: -0.015em; }
.guide-body p, .guide-body ul, .guide-body ol { max-width: 64ch; margin: 0 0 16px; }
.guide-body ul, .guide-body ol { padding-left: 1.25em; }
.guide-body li { margin-bottom: 8px; }
.guide-body li::marker { color: var(--ink-3); }
.guide-body strong { font-weight: 500; }
.guide-body a:not(.tlink) { color: var(--zenith); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-body a:not(.tlink):hover { text-decoration-thickness: 2px; }

/* worked price examples */
.guide-examples { display: grid; gap: 14px; margin: 22px 0 24px; }
.calc-card { padding: 20px 22px 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px -40px rgba(10, 18, 41, 0.4); }
.calc-card h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.calc-card > p { margin: 4px 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.calc-card dl { margin: 0 0 14px; }
.calc-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.calc-card dt { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.calc-card dd { margin: 0; font: 500 16px/1.3 var(--display); white-space: nowrap; }
.calc-card .total dt { color: var(--ink); font-weight: 500; }
.calc-card .total dd { font-size: 20px; color: var(--zenith); }
.calc-card .tlink { font-size: 15px; }

/* the side panel: calculator and popular routes */
.guide-aside { display: grid; gap: 28px; align-content: start; min-width: 0; }
.guide-cta { padding: 22px; border-radius: 24px; background: var(--mist); }
.guide-cta p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.guide-side h2 { margin-bottom: 6px; font-size: 20px; }
.guide-side .route-links strong { font-size: 18px; }

/* guide cards: hubs and «Ещё полезное» */
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.guide-card { display: grid; align-content: start; gap: 14px; height: 100%; padding: 10px 10px 20px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--line); color: inherit; text-decoration: none; transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 26px 50px -36px rgba(10, 18, 41, 0.45); }
.guide-card__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--mist-2); }
.guide-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-card__text { display: grid; gap: 6px; padding: 0 10px; }
.guide-card__text h2, .guide-card__text h3 { margin: 0; font: 500 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.guide-card__text > span { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.hub-guides .guide-cards { margin-top: 4px; }

/* links to the guides under a block */
.route-more { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; font-size: 15.5px; }
.route-more .tlink { color: var(--ink-2); }
.route-more .tlink:hover { color: var(--zenith); }

@media (max-width: 639px) {
  .guide-cards--compact .guide-card { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 22px; }
  .guide-cards--compact .guide-card__img { aspect-ratio: 1; }
  .guide-cards--compact .guide-card__text { gap: 4px; padding: 0; }
}
@media (min-width: 640px) {
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .guide-page .route-hero h1 { font-size: clamp(40px, 3.9vw, 58px); }
}
@media (min-width: 1000px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
  .guide-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1100px) {
  .guide-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
