/* Hotel Vela — сайт-визитка.
   Смешение: минималистичная «журнальная» структура (EDITION) + тёплая светлая
   палитра (кремовый фон, графит, шампань-золото), мягкие тени и скругления. */

:root {
  --bg: #faf8f4;          /* тёплый кремовый */
  --bg-2: #f2ede3;        /* второй фон / полоса */
  --panel: #ffffff;
  --ink: #1c1a17;         /* почти чёрный тёплый */
  --ink-soft: #574f43;    /* второстепенный текст — контрастный */
  --ink-mute: #8a8072;    /* только мелкие декоративные подписи */
  --gold: #9c7734;        /* шампань, тёмный — читается на кремовом */
  --gold-soft: #b08a4e;
  --gold-bg: #f3ead9;     /* мягкая золотая подложка */
  --line: rgba(28, 26, 23, .14);
  --line-soft: rgba(28, 26, 23, .09);
  --shadow: 0 20px 48px rgba(28, 26, 23, .12);
  --shadow-sm: 0 10px 26px rgba(28, 26, 23, .08);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(72px, 12vh, 150px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Serif SC', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: .002em;
  margin: 0;
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }

.grain { display: none; }
main { position: relative; z-index: 1; }

/* ---------- общие элементы ---------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 20px 0 0;
}
.lede.muted { color: var(--ink-mute); font-size: 14px; }

.center { text-align: center; }
.center .lede, .center .inline-links { margin-left: auto; margin-right: auto; }

.btn-line {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-line.wide { width: 100%; margin-top: 10px; }
.btn-line.sm { padding: 12px 24px; font-size: 11px; letter-spacing: .12em; }

.inline-links {
  display: flex; gap: 28px; justify-content: center;
  margin-top: 32px; flex-wrap: wrap;
}
.inline-links a {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.inline-links a:hover { color: var(--gold); border-color: var(--gold); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- шапка ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px var(--pad);
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 15, 11, .68) 0%, rgba(18, 15, 11, .28) 55%, rgba(18, 15, 11, 0) 100%);
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  color: var(--ink);
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(12px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px rgba(28, 26, 23, .06);
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  display: inline-flex; flex-direction: column; line-height: 1;
  font-size: 21px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  padding-left: .28em; color: inherit;
}
.wordmark span {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 500; letter-spacing: .32em; opacity: .62;
  margin-top: 7px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: inherit; opacity: .92; transition: opacity .3s var(--ease), color .3s var(--ease);
}
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav.scrolled .nav-links a:hover { color: var(--gold); }
.nav-links .nav-book { color: var(--gold-soft); opacity: 1; }
.nav.scrolled .nav-links .nav-book { color: var(--gold); }

.lang { display: flex; gap: 2px; }
.lang-btn {
  padding: 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: inherit; opacity: .55; transition: opacity .3s var(--ease);
}
.lang-btn:hover { opacity: .85; }
.lang-btn.is-active { opacity: 1; color: var(--gold-soft); }
.nav.scrolled .lang-btn.is-active { color: var(--gold); }

/* ---------- герой ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 96px;
  overflow: hidden;
  color: #fff;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; background: #1c1a17; }
.gallery-stage { position: absolute; inset: 0; }
.gallery-item {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease);
  transform: scale(1.045);
}
.gallery-item.is-active { opacity: 1; }
.gallery.is-empty .gallery-item { object-fit: contain; padding: 24%; opacity: .4; }

.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,15,11,.58) 0%, rgba(18,15,11,.3) 34%, rgba(18,15,11,.38) 60%, rgba(18,15,11,.78) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-inner .eyebrow { color: #e9d9b8; margin-bottom: 24px; }
.hero-inner h1 {
  color: #fff;
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 500;
  text-shadow: 0 2px 44px rgba(0, 0, 0, .4);
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: #f6f1e7;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .45);
}

.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.btn-solid {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #211a0e;
}
.btn-solid:hover { background: #c69a58; border-color: #c69a58; color: #211a0e; }
.btn-ghost-hero {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  background: rgba(18, 15, 11, .32);
  backdrop-filter: blur(4px);
}
.btn-ghost-hero:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero .gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 104px; z-index: 2;
  display: flex; justify-content: center; gap: 9px;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background .4s var(--ease), width .4s var(--ease);
  padding: 0;
}
.gallery-dot.is-active { background: #fff; width: 22px; border-radius: 3px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 42px; z-index: 2;
  transform: translateX(-50%);
  width: 1px; height: 54px; overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.scroll-cue span {
  position: absolute; top: -60%; left: 0; width: 1px; height: 60%;
  background: #fff;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -60%; } 60%, 100% { top: 100%; } }

/* ---------- секции ---------- */

.band { padding: var(--gap) var(--pad); }
.band + .band, .facts + .band, .band + .facts { border-top: 1px solid var(--line-soft); }
.band-inner { max-width: 1080px; margin: 0 auto; }
.band-inner.narrow { max-width: 640px; }
.band h2 { font-size: clamp(32px, 5vw, 56px); }

#about { background: var(--bg); }

/* ---------- факты ---------- */

.facts { padding: clamp(46px, 8vh, 78px) var(--pad); background: var(--bg-2); }
.facts-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact {
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 26px; text-align: center;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; }
.fact span {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.fact b {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 22px; color: var(--ink);
}

/* ---------- номера (журнальные ряды) ---------- */

.rooms { max-width: 1180px; margin: clamp(48px, 8vh, 86px) auto 0; }

.room {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vh, 78px) 0;
  border-top: 1px solid var(--line-soft);
}
.room:first-child { border-top: 0; }
.room:nth-child(even) .room-media { order: 2; }

.room-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.room-media .gallery-item { transform: none; transition: opacity 1s var(--ease); }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff; font-size: 16px; line-height: 1;
  background: rgba(28, 26, 23, .32); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s var(--ease), background .35s var(--ease);
}
.room-media:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(28, 26, 23, .55); }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.room-media .gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; justify-content: center; gap: 7px;
}
.room-media .gallery-dot { background: rgba(255, 255, 255, .5); }
.room-media .gallery-dot.is-active { background: #fff; }

.room-text .eyebrow { margin-bottom: 14px; }
.room-text h3 { font-size: clamp(30px, 3.6vw, 44px); }
.room-price {
  margin: 12px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 25px; color: var(--gold);
}
.room-price span {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-right: 9px;
}
.room-desc { margin: 16px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.72; max-width: 46ch; }
.room-text .btn-line { margin-top: 26px; }

/* ---------- форма ---------- */

#book { background: var(--bg-2); }
.bform { margin-top: clamp(40px, 7vh, 64px); text-align: left; }
.field-block { margin-bottom: 32px; }
.field-label, .field > span {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 11px;
}

.cat-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-choice { position: relative; }
.cat-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cat-choice span {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 14px; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cat-choice span b {
  font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.cat-choice input:checked + span { border-color: var(--gold); background: var(--gold-bg); }
.cat-choice input:checked + span b { color: var(--gold); }

.frow { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 24px; }
.field { flex: 1; min-width: 160px; display: block; }
.field-s { flex: 0 0 96px; min-width: 96px; }

.field input {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 16px;
  padding: 10px 0;
  transition: border-color .3s var(--ease);
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.avail-hint {
  margin: 4px 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.avail-hint.is-ok { color: var(--gold); }
.avail-hint.is-none { color: #b4523d; }

.form-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft); text-align: center;
}
.form-note.is-ok { color: var(--gold); }
.form-note.is-err { color: #b4523d; }

/* ---------- адрес ---------- */

.address {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink);
  margin: 20px auto 22px;
  max-width: 32ch;
  line-height: 1.38;
}
.maps {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 26px; margin-top: 34px;
}
.map-link {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.map-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- подвал ---------- */

.foot {
  text-align: center;
  padding: var(--gap) var(--pad) clamp(46px, 8vh, 74px);
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.foot .eyebrow { margin-bottom: 18px; }
.phone {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--gold);
  letter-spacing: .01em;
}
.foot-links {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin: 30px 0 52px;
}
.foot-links a {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.foot-links a:hover { color: var(--gold); border-color: var(--gold); }

.foot-mark { align-items: center; margin: 0 auto 12px; color: var(--ink-mute); }
.foot-mark span { opacity: .7; }
.foot small { font-size: 11px; letter-spacing: .1em; color: var(--ink-mute); }

/* ---------- тост ---------- */

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  z-index: 60;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .nav-links a:not(.nav-book) { display: none; }
  .nav-links { gap: 0; }
  .nav-book {
    border: 1px solid currentColor;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 11px;
  }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .fact:first-child, .fact:nth-child(2) { border-top: 0; }
  .room { grid-template-columns: 1fr; gap: 22px; }
  .room:nth-child(even) .room-media { order: 0; }
}

@media (max-width: 560px) {
  .nav { padding: 16px var(--pad); }
  .wordmark { font-size: 18px; letter-spacing: .24em; }
  .frow { gap: 18px; }
  .field-s { flex: 1 1 100%; }
  .hero-sub { letter-spacing: .08em; }
}
