/*
 * raspisanie.css — оформление хаба «Расписание теплоходов из Ярославля» (/raspisanie).
 *
 * Слой дополняет редакционную систему styles.css (.home-*) и каркас страниц
 * разделов route.css (.rt-*): здесь только то, что специфично для этой
 * страницы, под префиксом rs-. Токены, шрифты и палитра — из styles.css,
 * новых цветов и шрифтов не вводим.
 */

/* --- Hero: лестница направлений и полоса фактов ------------------------- */
.rs-hero-facts { grid-column: 1 / -1; }
.rs-hero__graph { display: flex; flex-direction: column; }
.rs-hero__note { margin: .95rem 0 0; color: rgba(255, 255, 255, .5); font-size: .64rem; }
.rs-hero__note i { margin-right: .35rem; color: var(--sun); }

/* --- Плашка «ориентировочно» над таблицей направлений -------------------- */
.rs-table-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.2rem; margin: 0 0 1.1rem; }
.rs-tag { display: inline-flex; align-items: center; padding: .32rem .75rem; border: 1px dashed rgba(233, 118, 93, .5); color: var(--coral); font-size: .57rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.rs-table-head__hint { color: var(--muted); font-size: .66rem; }
.rs-dir-table td:nth-child(3) b, .rs-dir-table td:nth-child(4) b { white-space: nowrap; }

/* --- Секция прогулок: текст + таблица рейсов ----------------------------- */
.rs-walk-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.4rem, 5vw, 5rem); align-items: start; }
.rs-walk-copy > p { color: var(--muted); font-size: .82rem; }
.rs-walk-list { margin-top: 2rem; }
.rs-walk-offers .home-disclaimer, .rs-walk-offers .rt-note { margin-top: 1rem; }

/* --- Секция сезонности: тёмная полоса и шкала месяцев -------------------- */
.rs-season-band { position: relative; color: var(--white); background: var(--river-900); overflow: clip; }
.rs-season-band::before { content: "МАЙ — ОКТЯБРЬ"; position: absolute; left: -1rem; bottom: 1rem; color: rgba(255, 255, 255, .035); font-family: var(--display); font-size: clamp(5rem, 14vw, 12rem); line-height: .8; letter-spacing: .04em; pointer-events: none; }
.rs-season-band h2 { color: var(--white); }
.rs-season-band .home-section__aside p { color: rgba(255, 255, 255, .6); font-size: .78rem; }

.rs-months { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .16); }
.rs-months__cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 1rem 1rem 1.1rem; background: rgba(8, 47, 60, .62); }
.rs-months__cell small { position: relative; z-index: 2; margin-bottom: .55rem; color: var(--sun); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rs-months__cell b { position: relative; z-index: 2; margin-top: auto; color: var(--white); font-size: .68rem; font-weight: 600; }
.rs-months__fill { position: absolute; inset: auto 0 0 0; height: var(--lvl, 50%); background: linear-gradient(180deg, rgba(239, 200, 107, .38), rgba(32, 127, 137, .34)); border-top: 2px solid var(--sun); transform-origin: bottom; animation: rs-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rs-months__cell:nth-child(2) .rs-months__fill { animation-delay: .08s; }
.rs-months__cell:nth-child(3) .rs-months__fill { animation-delay: .16s; }
.rs-months__cell:nth-child(4) .rs-months__fill { animation-delay: .24s; }
.rs-months__cell:nth-child(5) .rs-months__fill { animation-delay: .32s; }
.rs-months__cell:nth-child(6) .rs-months__fill { animation-delay: .4s; }
.rs-months__fill--peak { background: linear-gradient(180deg, rgba(239, 200, 107, .55), rgba(32, 127, 137, .4)); }

@keyframes rs-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rs-season-notes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem clamp(2rem, 4vw, 4rem); margin-top: 2.2rem; max-width: 1000px; }
.rs-season-notes p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .8rem; }
.rs-season-notes b { display: block; margin-bottom: .35rem; color: var(--sun); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.rs-season-links { position: relative; z-index: 1; max-width: 640px; margin: 2.2rem 0 0; color: rgba(255, 255, 255, .66); font-size: .82rem; }
.rs-season-links p { margin: 0; }

/* --- Карточки офферов: подборка «пока ждёте рейс» и блок «ещё прогулки» --- */
.rs-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.rs-offer {
  display: flex; flex-direction: column;
  border: 1px solid rgba(10, 30, 51, .12); border-radius: 12px;
  overflow: hidden; background: var(--white, #fff);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rs-offer:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 30, 51, .08); }
.rs-offer img { width: 100%; height: 120px; object-fit: cover; display: block; }
/* flex:1 — тело растягивается на всю карточку, цена уходит к низу */
.rs-offer__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rs-offer__badge { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.rs-offer__title {
  font-family: var(--display, Georgia, serif);
  font-size: 1rem; line-height: 1.25; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rs-offer__meta { font-size: .78rem; opacity: .75; display: flex; gap: 10px; flex-wrap: wrap; }
.rs-offer__place { font-size: .78rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-offer__price { font-size: .95rem; font-weight: 600; margin-top: auto; }
.rs-offer:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

@media (max-width: 575px) {
  .rs-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rs-offer img { height: 96px; }
}

@media (max-width: 380px) {
  .rs-offers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-offer { transition: none; }
  .rs-offer:hover { transform: none; }
}

/* --- CTA: пара кнопок в ряд ---------------------------------------------- */
.rs-cta-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .rs-months__fill { animation: none; }
}

@media (max-width: 1024px) {
  .rs-walk-grid { grid-template-columns: 1fr; }
  .rs-walk-offers .home-table-wrap { margin-top: 0; }
}

@media (max-width: 768px) {
  .rs-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-months__cell { min-height: 170px; }
  .rs-season-notes { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .rs-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-months__cell { min-height: 150px; padding: .85rem .8rem .95rem; }
  .rs-cta-actions { flex-direction: column; align-items: stretch; }
}
