/*
 * po-volge.css — слой страницы /kruizy/po-volge («Круизы по Волге из Ярославля»).
 *
 * Дополняет общий каркас route.css и редакционную систему styles.css: длинные
 * заголовки с ключевыми запросами, четыре формата круиза с «линейкой дней»,
 * сутки на борту, блок коротких рейсов и мелкие служебные элементы. Токены,
 * шрифты и палитра — из styles.css, новых цветов и шрифтов не вводим.
 */

/* --- Заголовки с ключевыми запросами ------------------------------------ */
.home-page .pv-h2 { max-width: 27ch; font-size: clamp(1.62rem, 3.05vw, 2.6rem); letter-spacing: -.035em; text-wrap: balance; }
.home-page .pv-h2::before { content: ""; display: block; width: 46px; height: 2px; margin-bottom: 1.1rem; background: var(--coral); }
.home-page .pv-h2--light::before { background: var(--sun); }
.home-page .pv-h3 { max-width: 36ch; margin: 0 0 1.35rem; color: var(--river-800); font-size: clamp(1.12rem, 1.7vw, 1.5rem); }

/* --- Полоса фактов под hero --------------------------------------------- */
.pv-hero-facts { position: relative; z-index: 2; margin-top: -3.4rem; padding-bottom: 4.4rem; }

/* --- Вводный абзац с акцентной линейкой --------------------------------- */
.pv-lede { max-width: 720px; margin: 2rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--coral); color: var(--river-900); font-size: .95rem; }

/* --- Четыре карточки городов -------------------------------------------- */
.pv-places { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Сутки на борту ------------------------------------------------------ */
.pv-days-block { margin-top: 3.6rem; }
.pv-days-block > h3 { margin-bottom: .5rem; }
.pv-days-block > p { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.pv-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 1.9rem; border: 1px solid var(--line); background: var(--line); }
.pv-day { position: relative; padding: 1.7rem 1.35rem 1.4rem; background: var(--white); overflow: hidden; }
.pv-day::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--sun); }
.pv-day:nth-child(2)::before { background: linear-gradient(90deg, var(--sun), var(--coral)); }
.pv-day:nth-child(3)::before { background: var(--coral); }
.pv-day:nth-child(4)::before { background: var(--river-700); }
.pv-day__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .95rem; background: var(--foam); color: var(--river-700); border-radius: 50%; font-size: 1.1rem; transition: background .25s, color .25s, transform .25s; }
.pv-day:hover .pv-day__icon { background: var(--sun); color: var(--river-950); transform: translateY(-2px); }
.pv-day b { display: block; font-family: var(--display); font-size: 1.14rem; font-weight: 600; letter-spacing: -.03em; }
.pv-day > span:last-child { display: block; margin-top: .35rem; color: var(--muted); font-size: .74rem; }

/* --- Форматы круиза (главный визуальный акцент страницы) ---------------- */
.pv-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 3.6rem; background: rgba(255, 255, 255, .16); }
.pv-format { position: relative; padding: 1.8rem 1.5rem 1.6rem; background: rgba(255, 255, 255, .035); transition: background .25s, transform .25s; }
.pv-format:hover { background: rgba(255, 255, 255, .085); transform: translateY(-3px); }
.pv-format__num { display: block; margin-bottom: 1.05rem; color: var(--sun); font-size: .6rem; font-weight: 700; letter-spacing: .18em; }
.pv-format h3 { margin-bottom: .95rem; color: var(--white); font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.pv-format p { margin-bottom: 1.25rem; color: rgba(255, 255, 255, .62); font-size: .76rem; }
.pv-format__bar { display: flex; gap: 3px; margin-bottom: 1.1rem; }
.pv-format__bar i { width: 14px; height: 6px; background: rgba(255, 255, 255, .16); border-radius: 1px; }
.pv-format__bar i.is-on { background: var(--sun); animation: pv-day-fill .5s ease-out both; }
.pv-format__bar i.is-on:nth-child(2) { animation-delay: .06s; }
.pv-format__bar i.is-on:nth-child(3) { animation-delay: .12s; }
.pv-format__bar i.is-on:nth-child(4) { animation-delay: .18s; }
.pv-format__bar i.is-on:nth-child(5) { animation-delay: .24s; }
.pv-format__bar i.is-on:nth-child(6) { animation-delay: .3s; }
.pv-format__bar i.is-on:nth-child(7) { animation-delay: .36s; }
@keyframes pv-day-fill { from { opacity: 0; transform: scaleY(.35); } to { opacity: 1; transform: none; } }
.pv-format__meta { display: block; margin-bottom: 1.1rem; color: rgba(255, 255, 255, .66); font-size: .7rem; }
.pv-format__meta b { color: var(--sun); font-size: .86rem; }
.pv-format__link { display: inline-flex; align-items: center; gap: .45rem; padding-bottom: .2rem; border-bottom: 1px solid rgba(239, 200, 107, .4); color: var(--sun); font-size: .7rem; font-weight: 700; }
.pv-format__link:hover { color: var(--white); border-color: var(--white); }

/* --- Шаги бронирования на тёмной подложке ------------------------------- */
.pv-steps { margin-bottom: 3.2rem; }
.pv-steps li { transition: background .25s; }
.pv-steps li:hover { background: var(--foam); }

/* --- Раннее бронирование ------------------------------------------------ */
.pv-early { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.6rem; align-items: end; margin-top: 3rem; padding: 2rem 1.9rem; border: 1px solid rgba(255, 255, 255, .18); border-left: 2px solid var(--sun); background: rgba(8, 47, 60, .34); overflow: hidden; }
.pv-early::after { content: ""; position: absolute; right: -3rem; bottom: -4.5rem; width: 12rem; height: 12rem; border: 1px solid rgba(239, 200, 107, .18); border-radius: 50%; }
.pv-early .home-overline { margin-bottom: .6rem; color: var(--sun); }
.pv-early h3 { margin: 0; color: var(--white); font-size: clamp(1.35rem, 2.1vw, 1.95rem); }
.pv-early > p { margin: 0; color: rgba(255, 255, 255, .66); font-size: .82rem; }

/* --- Карточки офферов: единый компактный вид --------------------------- */
.pv-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.pv-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;
}
.pv-offer:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 30, 51, .08); }
.pv-offer img { width: 100%; height: 120px; object-fit: cover; display: block; }
/* flex:1 — тело растягивается на всю карточку, цена уходит к низу */
.pv-offer__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pv-offer__badge { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.pv-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;
}
.pv-offer__meta { font-size: .78rem; opacity: .75; display: flex; gap: 10px; flex-wrap: wrap; }
.pv-offer__place { font-size: .78rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-offer__price { font-size: .95rem; font-weight: 600; margin-top: auto; }
.pv-offer:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

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

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

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

/* --- Посадка и FAQ ------------------------------------------------------ */
.pv-link-row { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; }
.pv-link-row > .home-text-link { margin-top: .4rem; }
.pv-faq-link { color: var(--river-800); font-weight: 700; border-bottom: 1px solid var(--river-500); }
.pv-faq-link:hover { color: var(--coral); border-color: var(--coral); }

@media (max-width: 991px) {
  .pv-hero-facts { margin-top: -1.4rem; padding-bottom: 4rem; }
  .pv-places, .pv-formats, .pv-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-early { grid-template-columns: 1fr; gap: 1.1rem; align-items: start; }
}

@media (max-width: 575px) {
  .home-page .pv-h2 { max-width: none; font-size: 1.5rem; }
  .home-page .pv-h2::before { margin-bottom: .9rem; }
  .pv-hero-facts { margin-top: 1rem; padding-bottom: 4.6rem; }
  .pv-lede { padding-left: 1rem; font-size: .9rem; }
  .pv-places, .pv-formats, .pv-days { grid-template-columns: 1fr; }
  .pv-formats { margin-bottom: 2.6rem; }
  .pv-early { padding: 1.5rem 1.3rem; }
  .pv-link-row { flex-direction: column; gap: .7rem; }
}
