/* Home page only (index.php). Loaded via $meta['styles']. */
/* Home-only layout rules (scoped to body.pb-home). */
.pb-home .pb-hero h1 { font-size: clamp(2.3rem, 4.5vw, 4.4rem); }
.pb-home .pb-hero__kicker b { white-space: nowrap; flex: none; }
.js .pb-home .pb-hero__inner .reveal { opacity: 1; transform: none; animation: pb-home-rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pb-home-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
.pb-home .pb-collage__label { white-space: normal; line-height: 1.25; border-radius: 12px; }
.pb-home #home-rooms { --bleed: max(var(--gutter), calc(50vw - var(--container) / 2)); margin-inline: calc(50% - 50vw); padding-inline: var(--bleed); scroll-padding-inline: var(--bleed); }
.pb-home #home-rooms .pb-price span, .pb-home #home-rooms .pb-room__from { white-space: nowrap; }
/* Cards that start off-screen in the rail keep the parallax offset site.js
   gave them on load (it only recalculates on window scroll), so after the
   arrows bring them in the photo sat ~150 px too high over an empty frame.
   The in-card drift is a few pixels anyway: photos in the rail stay put. */
.pb-home #home-rooms .pb-room__media img { translate: none !important; }
.pb-home .pb-band__cards { list-style: none; padding: 0; margin: 30px 0 0; }
.pb-home .pb-plans__more { margin: 10px 0 0; }
/* Four plan columns leave ~215–235 px for the featured button: the shared
   26 px side padding and no-wrap clipped "Hour packages in detail" and
   "Подробнее о пакетах" (overflow: hidden) on 1180–1440 px screens. */
.pb-home .pb-plan .pb-btn { padding-inline: 18px; white-space: normal; text-align: center; }
.pb-home .pb-plans--few { max-width: calc(var(--plans, 2) * 410px); margin-inline: auto; }
@media (min-width: 681px) {
    .pb-home .pb-plans--few { grid-template-columns: repeat(var(--plans, 2), minmax(0, 1fr)); }
}
.pb-home #online .pb-stats { margin-top: clamp(48px, 6vw, 80px); }
.pb-home .pb-aud { --pad: clamp(26px, 3vw, 40px); padding: var(--pad); }
.pb-home .pb-aud__media { position: relative; display: block; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, var(--teal-800), var(--teal-900)); }
.pb-home .pb-aud__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pb-home .pb-aud:hover .pb-aud__media img { transform: scale(1.05); }
.pb-home .pb-aud__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.pb-home .pb-aud__ph .pb-i { width: 64px; height: 64px; stroke-width: 1.2; }
.pb-home .pb-aud__room { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); }
.pb-home .pb-aud__media + .pb-icon { position: relative; z-index: 1; margin-top: -40px; margin-left: -2px; border: 3px solid var(--sand-0); box-sizing: content-box; box-shadow: 0 12px 24px -14px rgba(6, 48, 46, .6); }
@media (min-width: 1181px) {
    .pb-home .pb-plans { grid-template-columns: repeat(var(--plans, 4), minmax(0, 1fr)); }
}
@media (min-width: 981px) {
    .pb-home .pb-stats { grid-template-columns: repeat(var(--stats, 4), minmax(0, 1fr)); }
}
@media (min-width: 981px) and (max-height: 820px) {
    .pb-home .pb-hero { padding-top: calc(var(--header-h) + 20px); }
    .pb-home .pb-hero__kicker { margin-bottom: 18px; }
    .pb-home .pb-hero .pb-lead { margin-bottom: 26px; }
    .pb-home .pb-trust { margin-top: 24px; }
}
@media (max-width: 980px) {
    .pb-home .pb-hero h1 { font-size: clamp(2.3rem, 6.4vw, 3.4rem); }
    /* Single-column hero: parallax would slide the chips over the text. */
    .pb-home .pb-collage [data-speed], .pb-home .pb-hero__inner > [data-speed] { translate: none !important; }
    .pb-home .pb-scrollcue { display: none; }
    .pb-home #how .pb-story__progress { display: none; }
    .pb-home #home-rooms > * { flex-basis: min(320px, 84vw); }
    .pb-home #home-rooms .pb-room__go { display: none; }
}
@media (max-width: 680px) {
    .pb-home .pb-hero__kicker { border-radius: 20px; font-size: .84rem; padding-right: 12px; }
    /* Small frames: room code only; frame a's label moves right, clear of the price chip. */
    .pb-home .pb-collage__name { display: none; }
    .pb-home .pb-collage__frame--a .pb-collage__label { left: auto; right: 12px; }
    .pb-home #why .pb-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; }
    .pb-home #why .pb-card .pb-icon { width: 48px; height: 48px; border-radius: 14px; }
    .pb-home #why .pb-card h3 { margin: 0; }
    .pb-home #why .pb-card p { grid-column: 1 / -1; margin-top: 12px; }
    .pb-home #why .pb-card__num { display: none; }
    .pb-home .pb-plan--pkg:not(.pb-plan--featured) .pb-check { display: none; }
    .pb-home .pb-aud__media { aspect-ratio: 16 / 9; }
    .pb-home #online .pb-phone { aspect-ratio: auto; height: 540px; width: min(320px, 100%); }
    /* The band uses the shared ≤980 px vertical shade from site.css (darker
       at the top, where the heading sits) — no lighter page override. */
}
