/* ==========================================================================
   Перрон — посадочные страницы (направления, круизы, выходные) и журнал.
   Подключается после styles.css, tour.css (крошки) и listing.css (каталог).
   ========================================================================== */

/* ---------- Шапка посадочной ---------- */
.land-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-6); }
.land-head__title { font: 700 28px/34px var(--font-display); letter-spacing: -.01em; max-width: 18em; }
@media (min-width: 640px) { .land-head__title { font-size: 36px; line-height: 42px; } }
@media (min-width: 1024px) { .land-head__title { font-size: 44px; line-height: 50px; } }
.land-head__lead { font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 40em; }
@media (min-width: 1024px) { .land-head__lead { font-size: 18px; line-height: 28px; } }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); gap: 1px; max-width: 720px; }
.kpis > div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.kpis dt { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.kpis dd { font-weight: 700; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; }
.kpis dd.mono { font-weight: 500; font-size: 16px; }
@media (min-width: 640px) { .kpis > div { padding: var(--space-4) 20px; } .kpis dd { font-size: 22px; line-height: 28px; } .kpis dd.mono { font-size: 20px; } }

/* ---------- Схема ж/д сети (направления) ---------- */
.netmap { border-radius: var(--radius-lg); background: var(--surface-alt); border: 1px solid var(--line); overflow: hidden; }
.netmap__scroll { overflow-x: auto; scrollbar-width: none; }
.netmap__scroll::-webkit-scrollbar { display: none; }
.netmap svg { display: block; width: 100%; min-width: 760px; height: auto; }
.netmap .rail { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.netmap .rail-sleepers { fill: none; stroke: var(--surface-alt); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: butt; }
.netmap .hub circle { fill: var(--night); stroke: var(--surface-alt); stroke-width: 4; }
.netmap .hub text { font: 600 15px var(--font-sans); fill: var(--ink); }
.netmap .stop circle { fill: var(--surface); stroke-width: 5; transition: r .15s; }
.netmap .stop text { font: 600 15px var(--font-sans); fill: var(--ink); }
.netmap .stop .sub { font: 500 12px var(--font-mono); fill: var(--ink-muted); }
.netmap a.stop:hover text:first-of-type, .netmap a.stop:focus-visible text:first-of-type { fill: var(--brand); text-decoration: underline; }
.netmap a.stop:hover circle { r: 13; }
.netmap a:focus-visible { outline: none; }
.netmap a:focus-visible circle { stroke: var(--accent); }
.netmap__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); background: var(--surface); }
.netmap__legend span { display: inline-flex; align-items: center; gap: 8px; }
.netmap__legend i { display: inline-block; width: 22px; height: 6px; border-radius: 3px; }
.netmap__hint { padding: 10px var(--space-4) 0; font-size: 13px; color: var(--ink-muted); }
@media (min-width: 1024px) { .netmap__hint { display: none; } }

/* ---------- Карточки направлений ---------- */
.dirs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 640px) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.dirs > li { display: flex; }
.dir { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow .2s; }
.dir:hover { box-shadow: var(--shadow-raised); }
.dir__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.dir__body { display: grid; gap: 10px; padding: var(--space-4) 20px 20px; flex: 1; align-content: start; }
.dir__title { font: 600 20px/26px var(--font-display); }
.dir__title a { color: var(--ink); }
.dir__title a::after { content: ""; position: absolute; inset: 0; }
.dir:hover .dir__title a { color: var(--brand); text-decoration: none; }
.dir__text { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.dir__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dir__meta span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-alt); font-size: 12px; font-weight: 500; color: var(--ink); }
.dir__foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.dir__count { font-size: 14px; color: var(--ink-muted); }
.dir__price { font-size: 18px; }
.dir--soon .dir__price { font-size: 14px; font-weight: 500; color: var(--ink-muted); }

/* ---------- Табло «сутки в круизном поезде» ---------- */
.dayboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .dayboard { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-12); } }
.dayboard__intro { display: grid; gap: var(--space-3); line-height: 26px; }
.dayboard__intro p { max-width: 36em; }
.tablo { border-radius: var(--radius-lg); background: var(--night); color: var(--on-night); padding: var(--space-4) 20px; box-shadow: var(--shadow-raised); }
.tablo__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-3); border-bottom: 1px solid #2A3A42; font: 500 12px/16px var(--font-mono); color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .04em; }
.tablo ol { list-style: none; margin: 0; padding: 0; }
.tablo li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); padding: 12px 0; border-bottom: 1px dashed #2A3A42; }
.tablo li:last-child { border-bottom: 0; padding-bottom: 4px; }
.tablo time { font: 500 16px/22px var(--font-mono); color: var(--accent); }
.tablo b { display: block; font-weight: 600; line-height: 22px; }
.tablo small { display: block; font-size: 13px; line-height: 19px; color: var(--on-night-muted); }

/* ---------- Сравнение ---------- */
.compare { overflow-x: auto; position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 22px; }
.compare thead th { background: var(--surface-alt); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.compare thead th:nth-child(2) { color: var(--brand); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare tbody td:nth-child(2) { background: color-mix(in srgb, var(--brand-tint) 55%, transparent); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Выходные ---------- */
.weekends { display: grid; gap: var(--space-3); }
.weekends__label { font-weight: 600; }
.weekends .scroller { gap: var(--space-2); }
.wk { display: grid; gap: 2px; min-width: 132px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.wk:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.wk[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.wk[aria-pressed="true"] .wk__dates { color: var(--brand); }
.wk__dates { font: 500 15px/20px var(--font-mono); }
.wk__count { font-size: 12px; color: var(--ink-muted); }
@media (min-width: 1024px) { .weekends { display: none; } }

.fromcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 768px) { .fromcols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.fromcol { display: grid; gap: var(--space-3); align-content: start; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.fromcol h3 { font: 600 18px/24px var(--font-display); }
.fromcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fromcol li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 20px; }
.fromcol li:last-child a { border-bottom: 0; }
.fromcol li a:hover { color: var(--brand); text-decoration: none; }
.fromcol li .price { font-size: 14px; }
.fromcol small { display: block; color: var(--ink-muted); font-size: 13px; }

/* ---------- Журнал ---------- */
.rubrics .scroller { gap: var(--space-2); }
.rubric { min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.rubric[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (min-width: 1024px) { .rubrics .scroller { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--night); color: var(--on-night); }
.feature__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body { display: grid; gap: var(--space-3); padding: 20px; align-content: center; }
.feature__meta { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.feature__title { font: 700 24px/30px var(--font-display); }
.feature__title a { color: var(--on-night); }
.feature__title a::after { content: ""; position: absolute; inset: 0; }
.feature:hover .feature__title a { text-decoration: underline; text-underline-offset: 4px; }
.feature__text { color: var(--on-night-muted); line-height: 24px; }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 1.2fr 1fr; }
  .feature__img { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .feature__body { padding: var(--space-8) 40px; }
  .feature__title { font-size: 32px; line-height: 40px; }
}

.articles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 640px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .articles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); } }
.articles > li { display: flex; }
.articles > li[hidden] { display: none; }
.acard { position: relative; flex: 1; display: grid; gap: 10px; align-content: start; }
.acard__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--brand-tint); }
.acard__meta { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.acard__title { font-weight: 600; font-size: 18px; line-height: 25px; }
.acard__title a { color: var(--ink); }
.acard__title a::after { content: ""; position: absolute; inset: 0; }
.acard:hover .acard__title a { color: var(--brand); text-decoration: none; }
.acard__text { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.articles__empty { padding: var(--space-8); text-align: center; color: var(--ink-muted); border-radius: var(--radius-lg); background: var(--surface-alt); }

/* ---------- Статья ---------- */
.article-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); max-width: 820px; padding-bottom: var(--space-6); }
.article-head__rubric { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.article-head__title { font: 700 28px/34px var(--font-display); letter-spacing: -.01em; }
@media (min-width: 640px) { .article-head__title { font-size: 38px; line-height: 46px; } }
.article-head__lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: 14px; color: var(--ink-muted); }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.byline b { color: var(--ink); font-weight: 600; display: block; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 639px) { .article-cover img { aspect-ratio: 16 / 9; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-bottom: var(--space-12); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-12); } .article-layout .doc-toc { position: sticky; top: calc(var(--header-h) + var(--space-6)); } }
.prose { max-width: 42em; font-size: 17px; line-height: 29px; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font: 600 24px/31px var(--font-display); margin-top: var(--space-12); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 600; font-size: 19px; margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: var(--space-4) 20px; border-radius: var(--radius-lg); background: var(--brand-tint); font-size: 17px; }
.prose .compare { font-size: 15px; line-height: 22px; }
.prose .tours-inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-block: var(--space-6); }
@media (min-width: 640px) { .prose .tours-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .tours-inline .tour-card__title a { text-decoration: none; }
.prose .tours-inline p { margin: 0; }
.article-end { display: grid; gap: var(--space-3); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.article-end__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
