:root { --color-bg: #0d181c; --color-text: #f6efe6; --color-muted: #c4c8bf; --color-accent: #ffc98b; --color-surface: #182a2d; --color-border: #4e5b57; }
* { box-sizing: border-box; }
html { color: #f6efe6; background: #0d181c; font: 17px/1.6 system-ui, sans-serif; }
body { margin: 0; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(58px, 10vw, 144px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffc98b; outline-offset: 4px; }
/* Шапка и плашка лежат поверх заставки: первый экран — сразу полный кадр. */
.top { position: absolute; inset: 0 0 auto; z-index: 3; padding: 16px 24px; background: linear-gradient(rgba(5, 15, 19, .7), transparent); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top a { display: inline-flex; align-items: center; min-height: 44px; }
.demo-badge { color: var(--color-text); position: absolute; top: 76px; left: 50%; z-index: 3; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 16px; border: 1px solid #5d655b; border-radius: 18px; background: #26332f; font-size: 12px; text-align: center; }
.scene { position: relative; }
.stage { position: relative; min-height: 760px; min-height: 100svh; display: flex; align-items: end; background: #34473f; overflow: hidden; }
[data-scene="road"] .stage, [data-scene="kids"] .stage { background: #48533c; }
[data-scene="coast"] .stage, [data-scene="beach"] .stage, [data-scene="waves"] .stage { background: #326c72; }
[data-scene="house"] .stage, [data-scene="inside"] .stage { background: #8b755c; }
[data-scene="dinner"] .stage, [data-scene="sunset"] .stage { background: #805b4b; }
[data-scene="night"] .stage { background: #17272f; }
.stage picture, .stage img, .stage video, .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img, .stage video { object-fit: cover; }
.stage video { background-position: center; background-size: cover; background-repeat: no-repeat; }
.shade { background: linear-gradient(transparent 55%, rgba(5, 15, 19, .92)); pointer-events: none; }
.scene-text { position: relative; z-index: 1; padding: clamp(24px, 6vw, 88px); max-width: 1000px; }
.scene-text p:last-child { max-width: 580px; }
.kicker { color: #ffc98b; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.final { max-width: 1160px; padding: 80px 24px; margin: auto; }
.cabins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 80px; }
.cabin { border: 1px solid #4e5b57; border-radius: 20px; background: #182a2d; overflow: hidden; padding-bottom: 24px; }
.cabin img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; margin-bottom: 20px; }
.cabin h3, .cabin p { margin-inline: 20px; }
.cabin h3 { font: 28px Georgia, serif; }
.cabin .button { margin-inline: 20px; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 28px; color: #291b10; background: #ffc98b; font: inherit; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
form { display: grid; gap: 16px; max-width: 760px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; min-width: 0; }
input, select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; border: 1px solid #75847d; border-radius: 10px; background: #1b2b30; color: inherit; padding: 12px; font: inherit; color-scheme: dark; }
.consent { display: flex; align-items: start; }
.consent input { width: 24px; min-width: 24px; min-height: 24px; margin: 2px 10px 0 0; }
.error { color: #ffb7a5; font-size: 14px; }
[aria-invalid="true"] { border-color: #ffb7a5; }
.hp { display: none; }
.made-by { padding: 24px; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .cabins, .row { grid-template-columns: 1fr; }
  .top { padding-inline: 16px; font-size: 14px; }
  .scene-text { padding-bottom: 40px; }
}

/* Без класса это обычные полноэкранные фотографии с видимыми подписями. */
/* Следующая сцена начинается через 160vh, прошлая держится 220vh:
   60vh перекрытия хватает на раскрытие (24% от 220vh = 52.8vh). */
.motion-on .scene { height: 160vh; }
.motion-on .scene[data-scene="night"] { height: 320vh; }
.motion-on .scene .stage { height: 100vh; min-height: 0; }
.motion-on .scene:not([data-kind="hero"]) .line { opacity: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* В альбомной ориентации подпись помещается в высоту закреплённого кадра. */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .scene-text { padding: 20px 32px; max-width: 1000px; }
  .scene-text h1 { font-size: 64px; }
  .scene-text h2 { font-size: 36px; }
  .scene-text p { margin-bottom: 8px; }
}
.consent a { display: inline-flex; align-items: center; min-height: 44px; }
