/* HelenRooms — «Один вечер над Двиной» · seed a781604a */

:root {
  --night: #0B1526;
  --deep: #12243E;
  --deep-2: #1B3050;
  --gold: #F2B45C;
  --gold-deep: #A96412;
  --sand: #F7F1E4;
  --paper: #FBF8F1;
  --ink: #1C2431;
  --ink-soft: #45505E;
  --hairline: #D8CFBC;
  --radius: 14px;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Onest", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--deep) var(--paper);
}
html:focus-within { scroll-behavior: smooth; }

::selection { background: var(--gold); color: var(--night); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--deep); border-radius: 6px; border: 3px solid var(--paper); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(242,180,92,.10) 0%, rgba(242,180,92,0) 30%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.contact :focus-visible { outline-color: var(--gold); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(251, 248, 241, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .01em;
}
.brand b { color: var(--gold-deep); font-weight: 600; }
.site-head nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 32px);
}
.site-head nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.site-head nav a:hover { color: var(--deep); }
.head-call {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--deep);
  padding: 9px 16px;
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.head-call:hover { background: var(--deep); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  transition: transform .18s cubic-bezier(.19,1,.22,1), box-shadow .18s ease, background .2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 6px 22px rgba(217, 142, 59, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,142,59,.42); background: #F6BF6E; }
.btn-ghost {
  border: 1.5px solid var(--ink-soft);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--deep); background: rgba(18,36,62,.06); }
.btn.big { font-size: 19px; padding: 17px 34px; }
.btn-outline-light {
  border: 1.5px solid rgba(247, 241, 228, .5);
  color: var(--sand);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 64px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, 6fr) minmax(340px, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--deep);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(18px, 3vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.trust dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trust dd { font-size: 13px; color: var(--ink-soft); margin-top: 4px; max-width: 17ch; }

.window-scene {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #2E4468;
  box-shadow: 10px 18px 48px rgba(27, 48, 80, .22);
  aspect-ratio: 720 / 900;
  max-height: 82vh;
}
.window-scene svg { width: 100%; height: 100%; display: block; }
.sun { filter: drop-shadow(0 0 26px rgba(255, 230, 170, .9)); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- sections shared ---------- */
section { scroll-margin-top: 84px; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.01em;
  color: var(--deep);
  line-height: 1.15;
}

/* ---------- studios ---------- */
.studios {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px) 30px;
}
.studios .sec-title { margin-bottom: clamp(40px, 5vw, 64px); }
.studio {
  display: grid;
  grid-template-columns: minmax(300px, 6fr) minmax(320px, 5fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 52px) 0;
  border-top: 1px solid var(--hairline);
}
.studio.flip .studio-media { order: 2; }
.studio-media { position: relative; }
.studio-media svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(27, 48, 80, .16);
}
.ph-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .85;
}
.studio h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--deep);
  margin-bottom: 8px;
}
.studio-tag {
  font-weight: 600;
  color: var(--gold-deep);
  font-size: 15px;
  margin-bottom: 16px;
}
.studio-desc { color: var(--ink-soft); margin-bottom: 22px; max-width: 52ch; }
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-block: 1px solid var(--hairline);
  margin-bottom: 20px;
}
.facts li {
  flex: 1 1 auto;
  padding: 14px 18px 14px 0;
  display: flex;
  flex-direction: column;
}
.facts b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.facts span { font-size: 13px; color: var(--ink-soft); }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chips li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--deep);
  background: rgba(18, 36, 62, .07);
  border-radius: 999px;
  padding: 7px 14px;
}
.platform-links { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--deep);
  border: 1.5px solid var(--deep);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.platform-links a:hover { background: var(--deep); color: var(--paper); }


/* ---------- included ---------- */
.included {
  background: linear-gradient(180deg, var(--paper), var(--sand));
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px);
  margin-top: 40px;
}
.included .sec-title { max-width: 1180px; margin: 0 auto clamp(40px, 5vw, 64px); }
.inc-list {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(28px, 4vw, 56px);
}
.inc-list li {
  display: flex;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.inc-list svg {
  width: 30px; height: 30px;
  flex-shrink: 0;
  color: var(--gold-deep);
  margin-top: 2px;
}
.inc-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  color: var(--deep);
  margin-bottom: 6px;
}
.inc-list p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- check-in ---------- */
.checkin {
  background: var(--sand);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px);
}
.checkin .sec-title { max-width: 1180px; margin: 0 auto clamp(40px, 5vw, 64px); }
.steps {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 16px;
}
.step-n::before { content: counter(step); }
.steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--deep);
  margin-bottom: 8px;
}
.steps p { font-size: 15px; color: var(--ink-soft); }
.checkin-notes {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--ink-soft);
  max-inline-size: none;
}
.checkin-notes p { max-width: 90ch; }

/* ---------- rules (dusk → night) ---------- */
.rules {
  background: linear-gradient(180deg, var(--sand) 0%, #C9BBA4 22%, #46536B 68%, var(--night) 100%);
  padding: clamp(90px, 11vw, 150px) clamp(20px, 5vw, 64px) clamp(110px, 13vw, 170px);
  color: var(--sand);
}
.rules-inner { max-width: 900px; margin: 0 auto; }
.sec-title.light { color: #FBF3E2; }
.rules-list {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 0;
}
.rules-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 241, 228, .22);
  font-size: clamp(15.5px, 1.4vw, 18px);
}
.rules-list li:first-child { border-top: 1px solid rgba(247,241,228,.22); }
.rules-list b { color: var(--gold); font-weight: 600; }

/* ---------- reviews (night) ---------- */
.reviews {
  background: var(--night);
  color: #E9E4D8;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px);
}
.reviews .sec-title { color: #FBF3E2; max-width: 1180px; margin: 0 auto clamp(40px, 5vw, 64px); }
.rev-grid {
  max-width: 1180px;
  margin: 0 auto;
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
}
.rev {
  break-inside: avoid;
  margin-bottom: 34px;
  padding: 26px 28px;
  background: rgba(27, 48, 80, .45);
  border-radius: var(--radius);
  border: 1px solid rgba(242, 180, 92, .18);
}
.rev p { font-size: 15.5px; font-style: italic; margin-bottom: 12px; }
.rev cite { font-style: normal; font-size: 13px; font-weight: 600; color: var(--gold); }

/* ---------- booking ---------- */
.booking {
  background: linear-gradient(180deg, var(--night), #16294a);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px);
  color: var(--sand);
}
.booking-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.booking .sec-title { color: #FBF3E2; margin-bottom: 16px; }
.booking-sub {
  color: rgba(233, 228, 216, .85);
  margin-bottom: 40px;
  font-size: clamp(15.5px, 1.4vw, 18px);
}
.booking-widget {
  background: rgba(27, 48, 80, .45);
  border: 1px solid rgba(242, 180, 92, .22);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
  text-align: left;
}
#litepms .widget-form { background: rgba(27, 48, 80, 0) !important; padding: 0 !important; }
#litepms .widget-form .title {
  font-family: var(--font-display) !important;
  font-weight: 500;
  font-size: 18px !important;
  color: #FBF3E2 !important;
  margin-bottom: 18px;
}
#litepms .litepms-datein,
#litepms .litepms-dateout {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 18px 18px 0;
}
#litepms .widget-form label {
  color: rgba(233, 228, 216, .8) !important;
  font-size: 14px !important;
  padding-left: 2px;
}
#litepms .widget-form input.input {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  background: rgba(251, 248, 241, .95) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(233, 228, 216, .3) !important;
  border-radius: 12px;
  height: 44px;
  padding: 0 14px !important;
  cursor: pointer;
}
#litepms .widget-form input.input.date {
  background: rgba(251, 248, 241, .95) !important;
  padding: 0 14px !important;
}
#litepms .widget-form input.submit {
  display: inline-block;
  font-family: var(--font-body) !important;
  font-weight: 600;
  font-size: 16px !important;
  height: auto !important;
  background: var(--gold) !important;
  color: var(--night) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 13px 30px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s ease, transform .18s cubic-bezier(.19,1,.22,1);
}
#litepms .widget-form input.submit:hover { background: #F6BF6E; transform: translateY(-1px); }
#litepms .copy { margin-top: 18px; font-size: 12px; color: rgba(233,228,216,.5) !important; }
#litepms .copy a { color: rgba(233, 228, 216, .5) !important; }
#litepms .ui-datepicker {
  background: var(--deep);
  color: var(--sand);
  border: 1px solid rgba(242, 180, 92, .3);
  border-radius: 12px;
  font-family: var(--font-body);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
#litepms .ui-datepicker .ui-datepicker-header { background: var(--deep); }
#litepms .ui-datepicker .ui-datepicker-title { color: #FBF3E2; }
#litepms .ui-datepicker th { color: rgba(233,228,216,.7); background: transparent; border-color: rgba(233,228,216,.15); }
#litepms .ui-datepicker td { background: var(--deep); }
#litepms .ui-datepicker td .ui-state-default { color: var(--sand); }
#litepms .ui-datepicker td .ui-state-hover { background: var(--deep-2); }
#litepms .ui-datepicker thead { background: transparent; }

/* ---------- contact (deep night) ---------- */
.contact {
  position: relative;
  background: radial-gradient(120% 90% at 50% 115%, #16294a 0%, var(--night) 62%);
  color: var(--sand);
  text-align: center;
  padding: clamp(90px, 11vw, 150px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.night-sky { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #FBE9C4;
  animation: twinkle 3.4s ease-in-out infinite;
}
.star.s1{top:12%;left:14%} .star.s2{top:22%;left:78%;animation-delay:.6s;width:2px;height:2px}
.star.s3{top:8%;left:52%;animation-delay:1.2s} .star.s4{top:30%;left:34%;animation-delay:.3s;width:2px;height:2px}
.star.s5{top:16%;left:90%;animation-delay:1.7s} .star.s6{top:36%;left:8%;animation-delay:.9s;width:2px;height:2px}
.star.s7{top:6%;left:30%;animation-delay:2.2s;width:2px;height:2px} .star.s8{top:26%;right:20%;animation-delay:1.4s}
@keyframes twinkle { 0%,100%{opacity:.9} 50%{opacity:.25} }
.moonlit-window {
  position: absolute;
  width: 14px; height: 18px;
  background: var(--gold);
  opacity: .5;
  border-radius: 2px;
  animation: windowGlow 5s ease-in-out infinite;
}
.moonlit-window.w1{bottom:8%;left:12%} .moonlit-window.w2{bottom:12%;left:16%;animation-delay:1.6s}
.moonlit-window.w3{bottom:9%;right:14%;animation-delay:.8s} .moonlit-window.w4{bottom:14%;right:18%;animation-delay:2.4s;opacity:.35}
@keyframes windowGlow { 0%,100%{opacity:.5} 50%{opacity:.15} }

.contact-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.slogan {
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  color: rgba(247, 241, 228, .75);
  margin-bottom: 34px;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 48px);
  color: #FBF3E2;
  margin-bottom: 16px;
}
.contact-note { color: rgba(233, 228, 216, .85); margin-bottom: 36px; font-size: clamp(15.5px, 1.4vw, 18px); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.contact address {
  font-style: normal;
  font-size: 14px;
  color: rgba(233, 228, 216, .6);
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--night);
  border-top: 1px solid rgba(242, 180, 92, .18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px clamp(20px, 5vw, 64px) calc(22px + env(safe-area-inset-bottom));
  font-size: 13.5px;
  color: rgba(233, 228, 216, .6);
}
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: rgba(233, 228, 216, .75); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }

/* ---------- reveal motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.19,1,.22,1), transform .7s cubic-bezier(.19,1,.22,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .win-dot, .star, .moonlit-window { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .inc-list { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero-sub { order: 2; }
  .window-scene { order: 3; aspect-ratio: 4 / 3; max-height: none; }
  .hero-actions { order: 4; }
  .trust { order: 5; }
  .studio { grid-template-columns: 1fr; }
  .studio.flip .studio-media { order: 0; }
}
@media (max-width: 720px) {
  .site-head nav { display: none; }
  .head-call { font-size: 13.5px; padding: 8px 13px; }
  .trust { grid-template-columns: repeat(2, auto); row-gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .inc-list { grid-template-columns: 1fr; }
  .rev-grid { columns: 1; }
    .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
  .platform-links a { flex: 1 1 44%; text-align: center; }
}

/* ---------- галереи Immich ---------- */
.gallery-hero {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
}
.gallery-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.19,1,.22,1);
}
.gallery-hero:hover img { transform: scale(1.025); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.gallery-cell {
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  background: none;
}
.gallery-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.19,1,.22,1);
}
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-more {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  transition: background .2s ease;
}
.gallery-more:hover { background: var(--deep-2); }

.studio-media.has-gallery svg { display: none; }

/* лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 21, 38, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(12px, 3vw, 40px);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1100px, 82vw);
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox button {
  background: rgba(27, 48, 80, .7);
  color: var(--sand);
  border: 1px solid rgba(233, 228, 216, .25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
}
.lightbox button:hover { background: var(--deep-2); }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-count {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(233, 228, 216, .8);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .lightbox { flex-wrap: wrap; }
  .lb-stage { order: -1; width: 100%; }
}
