/* ============================================================
   ОТЕЛЬ ПИТЕР — премиальный сайт
   Дизайн-система: тёмная база (графит) + золото + айвори
   ============================================================ */

/* ---------- Шрифты ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ---------- Токены ---------- */
:root {
  --ink:        #0d0e11;   /* глубокий графит - фон */
  --ink-2:      #14161b;   /* поверхности */
  --ink-3:      #1c1f26;   /* карточки */
  --ivory:      #f6f1e7;   /* светлый фон/текст */
  --ivory-2:    #efe8da;
  --cream-text: #efe9dd;
  --muted:      #a9a396;   /* приглушённый текст */
  --muted-2:    #7d7869;

  --gold:       #c9a24b;
  --gold-lite:  #e9cd82;
  --gold-deep:  #9c7a2e;
  --gold-grad:  linear-gradient(135deg, #f0d68f 0%, #d9b45f 42%, #b98f34 100%);
  --gold-soft:  rgba(201,162,75,.14);

  --line:       rgba(201,162,75,.22);
  --line-soft:  rgba(246,241,231,.10);

  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --radius: 4px;
  --shadow: 0 30px 70px -30px rgba(0,0,0,.65);
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream-text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(201,162,75,.32); color: #fff; }

/* лёгкая зернистость поверх всего */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Типографика ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .3px; }
.h-eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.h-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .6; }
.section-title { font-size: clamp(30px, 4.2vw, 52px); }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-lite);
}
.lead { color: var(--muted); font-size: clamp(16px,1.5vw,18.5px); max-width: 60ch; }

/* ---------- Раскладка ---------- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section--ivory { background: var(--ivory); color: #26241d; }
.section--ivory .lead { color: #6b6455; }
.section--ivory .h-eyebrow { color: var(--gold-deep); }
.section--ivory .h-eyebrow::before { background: var(--gold-deep); }

/* Разделитель со шпилем */
.spire-div { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; opacity: .8; }
.spire-div i { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.spire-div i + i { background: linear-gradient(90deg, var(--gold), transparent); }
.spire-div svg { width: 16px; height: 34px; color: var(--gold); }

/* ---------- Кнопки ---------- */
.btn {
  --pad: 17px 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: var(--pad); font-family: var(--sans); font-weight: 600; font-size: 13.5px;
  letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), color .4s, background .4s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #211a08; box-shadow: 0 14px 30px -12px rgba(201,162,75,.6); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(201,162,75,.7); }
.btn-ghost { border-color: var(--line); color: var(--cream-text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lite); background: var(--gold-soft); }
.btn-lg { --pad: 20px 44px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 22px 0; transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 12px 0; background: rgba(11,12,15,.86);
  backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 60px; width: auto; max-width: none; flex: none; transition: height .5s var(--ease); filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.header.scrolled .brand img { height: 48px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13.5px; letter-spacing: .06em; color: var(--cream-text); position: relative;
  padding: 6px 0; opacity: .86; transition: opacity .3s, color .3s; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease-out);
}
.nav a:hover { opacity: 1; color: var(--gold-lite); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 20px; }
/* Два телефона держим столбиком: в строку они съедали место у меню на средних экранах. */
.header__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header__phones .header__phone { font-size: 14px; opacity: .92; transition: opacity .3s, color .3s; }
.header__phones .header__phone:hover { opacity: 1; color: var(--gold-lite); }
/* Между 1000 и 1200 в строку не помещаются логотип + меню + два телефона + кнопка:
   поджимаем промежутки, иначе пункты меню ломаются на две строки. */
@media (max-width: 1200px) {
  .nav { gap: 20px; }
  .nav a { font-size: 12.5px; letter-spacing: .04em; }
  .header__row { gap: 16px; }
  .header__cta { gap: 14px; }
  .header__phones .header__phone { font-size: 13px; }
}
/* Ещё уже - логотип, меню и кнопка брони занимают всю строку: телефоны прячем,
   звонок остаётся в кнопке «Забронировать» и в разделе «Контакты». */
@media (max-width: 1000px) { .header__phones { display: none; } }
.header__phone { font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.header__phone span { color: var(--gold-lite); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--cream-text); transition: .35s var(--ease); }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 16s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,10,13,.72) 0%, rgba(9,10,13,.42) 42%, rgba(9,10,13,.92) 100%),
    radial-gradient(120% 80% at 20% 20%, rgba(201,162,75,.16), transparent 60%);
}
.hero__inner { padding: 120px 0 190px; }
.hero__eyebrow { color: var(--gold-lite); letter-spacing: .5em; font-size: 12px; text-transform: uppercase; font-weight: 600; margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 500; line-height: .98; letter-spacing: 1px; }
.hero h1 .sub { display: block; font-size: clamp(15px,2vw,20px); font-family: var(--sans); letter-spacing: .55em; text-transform: uppercase; color: var(--muted); margin-top: 22px; font-weight: 500; }
.hero__desc { margin: 30px 0 40px; max-width: 46ch; color: #d8d2c4; font-size: clamp(16px,1.6vw,19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; left: 50%; bottom: 116px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; z-index: 3; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{ opacity:.3; transform: scaleY(.6); transform-origin: top;} 50%{ opacity:1; transform: scaleY(1);} }

/* ---------- Плавающая панель бронирования ---------- */
.booking-bar { position: relative; z-index: 20; margin-top: -96px; }
.booking-card {
  background: var(--ivory); color: #26241d; border-radius: 6px; padding: 30px 34px;
  box-shadow: var(--shadow); border-top: 3px solid transparent; border-image: var(--gold-grad) 1;
}
.booking-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.booking-card__head h3 { font-size: 24px; color: #26241d; }
.booking-card__head span { font-size: 13px; color: #8a8371; letter-spacing: .04em; }
#WidgetHorizontalBlockId { min-height: 40px; }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 8px; }
.stat b { font-family: var(--serif); font-size: clamp(42px,4.8vw,62px); font-weight: 600; display: block; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.stat b .gold-text { display: inline; }
.stat > span { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- О нас ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px,6vw,88px); align-items: center; }
.about__media { position: relative; }
.about__media .frame { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.about__media .frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.about__media:hover .frame img { transform: scale(1.06); }
.about__media .badge {
  position: absolute; right: -22px; bottom: 34px; background: var(--ink-2); border: 1px solid var(--line);
  padding: 20px 26px; border-radius: 6px; text-align: center; box-shadow: var(--shadow);
}
.about__media .badge b { font-family: var(--serif); font-size: 40px; color: var(--gold-lite); display: block; line-height: 1; }
.about__media .badge span { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.about__text h2 { font-size: clamp(28px,3.6vw,46px); margin-bottom: 22px; }
.about__list { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 16px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; color: #d6d0c2; }
.about__list svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }

/* ---------- Номера ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.room {
  position: relative; border-radius: 6px; overflow: hidden; background: var(--ink-3);
  border: 1px solid var(--line-soft); transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s;
}
.room:hover { border-color: var(--line); transform: translateY(-6px); box-shadow: var(--shadow); }
.room__img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-out); }
.room:hover .room__img img { transform: scale(1.08); }
.room__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,14,17,.85)); }
.room__tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(13,14,17,.7); border: 1px solid var(--line); color: var(--gold-lite); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 40px; backdrop-filter: blur(6px); }
.room__real { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--gold-grad); color: #201907; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 40px; }
.room__body { padding: 26px 28px 30px; }
.room__body h3 { font-size: 27px; margin-bottom: 8px; }
.room__meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 18px; color: var(--muted); font-size: 13.5px; }
.room__meta span { display: inline-flex; align-items: center; gap: 8px; }
.room__meta svg { width: 17px; height: 17px; color: var(--gold); }
.room__desc { color: #cdc7ba; font-size: 15px; margin-bottom: 22px; }
.room__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.room__price small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.room__price b { font-family: var(--serif); font-size: 22px; color: var(--gold-lite); font-weight: 600; }
.room__foot .btn { --pad: 13px 24px; font-size: 12px; }

/* ---------- Секция бронирования (виджеты) ---------- */
.booking-widgets { display: grid; gap: 40px; }
.bw-block { background: #fff; border-radius: 6px; padding: clamp(20px,3vw,36px); box-shadow: 0 24px 60px -34px rgba(0,0,0,.3); }
.bw-block h3 { color: #26241d; font-size: 26px; margin-bottom: 6px; }
.bw-block p { color: #857e6d; margin: 0 0 22px; font-size: 15px; }
#WidgetRoomsListId, #WidgetHorizontalAvailabilityCalendarId { min-height: 60px; }

/* ---------- Удобства ---------- */
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amen {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 30px 26px;
  transition: transform .5s var(--ease-out), border-color .5s, background .5s;
}
.amen:hover { transform: translateY(-5px); border-color: var(--line); background: var(--ink-3); }
.amen__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); margin-bottom: 18px; }
.amen__ic svg { width: 24px; height: 24px; color: var(--gold-lite); }
.amen h4 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 7px; letter-spacing: .01em; }
.amen p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 5px; cursor: pointer; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.gallery figure::after { content: "＋"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; background: rgba(13,14,17,.35); opacity: 0; transition: opacity .5s; }
.gallery figure:hover img { transform: scale(1.1); }
.gallery figure:hover::after { opacity: 1; }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .tall { grid-row: span 2; }

/* ---------- Преимущества ---------- */
.why { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.why__item { padding: 34px 30px; border: 1px solid var(--line-soft); border-radius: 6px; position: relative; transition: border-color .5s, transform .5s var(--ease-out); }
.why__item:hover { border-color: var(--line); transform: translateY(-5px); }
.why__num { font-family: var(--serif); font-size: 30px; color: var(--gold); opacity: .5; }
.why__item h4 { font-size: 22px; margin: 14px 0 10px; }
.why__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Расположение ---------- */
.location { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,60px); align-items: stretch; }
.location__info h2 { font-size: clamp(28px,3.4vw,44px); margin-bottom: 20px; }
.loc-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.loc-facts li { display: flex; gap: 16px; }
.loc-facts svg { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.loc-facts b { display: block; font-weight: 600; color: var(--cream-text); font-size: 16px; margin-bottom: 2px; }
.loc-facts span { color: var(--muted); font-size: 14.5px; }
.location__map { border-radius: 6px; overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- Контакты / форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact__info h2 { font-size: clamp(28px,3.6vw,46px); margin-bottom: 18px; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list .ic { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-soft); }
.contact__list .ic svg { width: 21px; height: 21px; color: var(--gold-lite); }
.contact__list small { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.contact__list a, .contact__list b { font-size: 17px; font-weight: 500; color: var(--cream-text); }
.socials { display: flex; gap: 12px; margin-top: 30px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .4s var(--ease); }
.socials a:hover { background: var(--gold-soft); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; color: var(--gold-lite); }

.form { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: clamp(28px,4vw,44px); }
.form h3 { font-size: 26px; margin-bottom: 8px; }
.form p.sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.field { position: relative; margin-bottom: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 15px 16px; color: var(--cream-text); font-family: var(--sans); font-size: 15.5px; transition: border-color .35s, box-shadow .35s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 24px; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--gold-lite); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; }
.form__note { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Подвал ---------- */
.footer { background: #08090b; border-top: 1px solid var(--line-soft); padding: 70px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-soft); }
.footer__brand img { height: 66px; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.footer h5 { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lite); margin: 6px 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a, .footer ul li { color: var(--muted); font-size: 14.5px; transition: color .3s; }
.footer ul a:hover { color: var(--gold-lite); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; }
.footer__bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Плавающие кнопки ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease-out); }
.fab a:hover { transform: scale(1.08) translateY(-2px); }
.fab .wa { background: #25d366; }
.fab .wa svg { width: 30px; height: 30px; color: #fff; }
.fab .max { background: linear-gradient(135deg, #2d8cff, #7b5cff); }
.fab .max svg { width: 28px; height: 28px; color: #fff; }
.fab .up { background: var(--ink-3); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease-out); }
.fab .up.show { opacity: 1; pointer-events: auto; }
.fab .up svg { width: 20px; height: 20px; color: var(--gold-lite); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6,7,9,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; padding: 30px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; box-shadow: var(--shadow); transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.open img { transform: scale(1); }
.lightbox__close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 34px; background: none; border: none; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 22px; transition: background .3s; }
.lightbox__nav:hover { background: var(--gold-soft); }
.lightbox__nav.prev { left: 26px; } .lightbox__nav.next { right: 26px; }

/* ---------- Анимации появления ---------- */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: none; }
}

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(9,10,13,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); padding: 40px;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; color: var(--cream-text); padding: 10px; opacity: 0; transform: translateY(16px); transition: .5s var(--ease); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1){ transition-delay:.06s;}
body.menu-open .mobile-menu a:nth-child(2){ transition-delay:.12s;}
body.menu-open .mobile-menu a:nth-child(3){ transition-delay:.18s;}
body.menu-open .mobile-menu a:nth-child(4){ transition-delay:.24s;}
body.menu-open .mobile-menu a:nth-child(5){ transition-delay:.30s;}
body.menu-open .mobile-menu a:nth-child(6){ transition-delay:.36s;}
.mobile-menu .btn { margin-top: 22px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2,1fr); gap: 40px 20px; }
  .about, .location, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__media .badge { right: 20px; }
  .amen-grid { grid-template-columns: repeat(2,1fr); }
  .why { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .header__phone, .header__phones { display: none; }
  .burger { display: block; }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 170px; }
  .gallery .big { grid-column: span 2; grid-row: span 1; }
  .booking-bar { margin-top: -60px; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .amen-grid { grid-template-columns: 1fr; }
  .booking-card { padding: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   РЕВИЗИЯ: доверие · бронирование в 1-м экране · отзывы · честный номерной фонд
   ============================================================ */

/* Hero компактнее + доверие + панель бронирования */
.hero h1 { font-size: clamp(38px, 6.2vw, 80px); }
.hero__inner { padding: 112px 0 140px; }
.hero__desc { display: none; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 26px 0 26px; }
.tbadge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 40px; background: rgba(13,14,17,.5); backdrop-filter: blur(6px); }
.tbadge .stars { color: var(--gold-lite); font-size: 14px; letter-spacing: 1px; }
.tbadge b { color: #fff; font-weight: 700; font-size: 15px; }
.tbadge span { color: var(--muted); font-size: 13px; }
.tbadge--gp { border-color: var(--gold); background: var(--gold-soft); }
.tbadge--gp svg { width: 19px; height: 19px; color: var(--gold-lite); }
.tbadge--gp b { color: var(--gold-lite); font-size: 13px; letter-spacing: .02em; }

.hero__book { scroll-margin-top: 96px; max-width: 960px; background: rgba(247,242,233,.97); border-radius: 10px; padding: 18px 22px 20px; box-shadow: var(--shadow); border-top: 3px solid transparent; border-image: var(--gold-grad) 1; }
.hero__book .hb-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hero__book .hb-label b { color: #26241d; font-family: var(--serif); font-size: 20px; }
.hero__book .hb-label span { color: #8a8371; font-size: 12.5px; }

/* Заглушка на время загрузки виджета бронирования: вместо пустого белого поля
   показываем контуры будущих полей, они гаснут как только виджет отрисовался. */
.hb-skeleton { display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 10px; align-items: center; }
.hb-skeleton .sk { display: block; height: 44px; border-radius: 6px; background: linear-gradient(90deg, rgba(38,36,29,.06) 25%, rgba(38,36,29,.12) 37%, rgba(38,36,29,.06) 63%); background-size: 400% 100%; animation: skShimmer 1.4s ease-in-out infinite; }
.hb-skeleton .sk-b { width: 132px; background: linear-gradient(90deg, rgba(176,141,62,.18) 25%, rgba(176,141,62,.34) 37%, rgba(176,141,62,.18) 63%); background-size: 400% 100%; }
.hb-skeleton.is-hidden { display: none; }
@keyframes skShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (max-width: 760px) {
  .hb-skeleton { grid-template-columns: 1fr 1fr; }
  .hb-skeleton .sk-b { width: 100%; grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .hb-skeleton .sk { animation: none; } }
.hero__actions { margin-top: 24px; }

/* Честный номерной фонд */
.rooms-real { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 34px; }
.rroom { background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s; }
.rroom:hover { border-color: var(--line); transform: translateY(-6px); box-shadow: var(--shadow); }
.rroom__img { display: block; position: relative; aspect-ratio: 16/11; overflow: hidden; }
.rroom__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-out); }
.rroom:hover .rroom__img img { transform: scale(1.07); }
.rroom__more { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 14px; background: linear-gradient(transparent, rgba(13,14,17,.85)); color: var(--gold-lite); font-size: 13px; letter-spacing: .04em; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease-out); }
.rroom:hover .rroom__more { opacity: 1; transform: none; }
.rroom__title { display: block; }
.rroom__title h3 { transition: color .3s; }
.rroom__title:hover h3 { color: var(--gold-lite); }
.rroom__btns { display: flex; gap: 10px; }
.rroom__c { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rroom__c h3 { font-size: 27px; }
.rroom__c p { color: #cdc7ba; font-size: 15px; margin: 0; flex: 1; }
.rroom__c .rmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; }
.rroom__c .rmeta span { display: inline-flex; align-items: center; gap: 7px; }
.rroom__c .rmeta svg { width: 17px; height: 17px; color: var(--gold); }
.rroom__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 4px; }
.rroom__price small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.rroom__price b { font-family: var(--serif); font-size: 22px; color: var(--gold-lite); white-space: nowrap; }
.rroom__foot .btn { --pad: 12px 22px; font-size: 12px; }
.rroom__foot .btn:only-child { margin-left: auto; }

/* Попап акции */
.promo-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(6,7,9,.8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.promo-overlay.show { opacity: 1; pointer-events: auto; }
.promo-card { position: relative; max-width: 480px; width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transform: translateY(20px) scale(.97); transition: transform .55s var(--ease-out); }
.promo-overlay.show .promo-card { transform: none; }
.promo-close { position: absolute; top: 12px; right: 14px; z-index: 3; background: rgba(0,0,0,.4); border: 1px solid var(--line-soft); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.promo-img img { width: 100%; height: 200px; object-fit: cover; }
.promo-body { padding: 30px 32px 34px; text-align: center; }
.promo-body h3 { font-size: 28px; margin: 6px 0 12px; }
.promo-body p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

.room-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px auto 32px; max-width: 900px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line-soft); border-radius: 40px; color: #cdc7ba; font-size: 14px; background: var(--ink-2); transition: border-color .4s, color .4s; }
.chip:hover { border-color: var(--line); color: var(--gold-lite); }
.chip svg { width: 17px; height: 17px; color: var(--gold); }
.rooms-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Отзывы */
.rev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: center; margin-bottom: 46px; }
.rev-score { text-align: center; }
.rev-score b { font-family: var(--serif); font-size: 66px; color: var(--gold-lite); line-height: 1; display: block; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.about__media .badge b, .why__num { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.rev-score .stars { color: var(--gold-lite); letter-spacing: 3px; font-size: 19px; }
.rev-score span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.rev-gp { display: inline-flex; align-items: center; gap: 14px; padding: 18px 24px; border: 1px solid var(--gold); border-radius: 10px; background: var(--gold-soft); }
.rev-gp svg { width: 40px; height: 40px; color: var(--gold-lite); flex: none; }
.rev-gp b { color: var(--gold-lite); font-size: 17px; display: block; }
.rev-gp span { color: var(--muted); font-size: 13px; }

.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .5s, transform .6s var(--ease-out); }
.review:hover { border-color: var(--line); transform: translateY(-5px); }
.review .stars { color: var(--gold-lite); letter-spacing: 1px; font-size: 14px; }
.review p { color: #d0cabd; font-size: 14.5px; line-height: 1.62; margin: 0; flex: 1; }
.review .who { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.review .who b { font-size: 14.5px; color: var(--cream-text); font-weight: 600; }
.review .who small { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.rev-source { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 38px; color: var(--muted); font-size: 14px; }
.rev-source a { color: var(--gold-lite); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } .rooms-real { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reviews-grid { grid-template-columns: 1fr; } .rroom { min-height: 380px; } .rev-score b { font-size: 54px; } }

/* ============ Страница номера ============ */
.rp { padding: 40px 0 80px; min-height: 70vh; }
.rp-crumbs { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.rp-crumbs a { color: var(--gold-lite); }
.rp-crumbs a:hover { text-decoration: underline; }
.rp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px,4vw,54px); align-items: start; }
.rp-gallery { position: sticky; top: 90px; }
.rp-main { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.rp-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: opacity .3s; }
.rp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.rp-thumb { padding: 0; border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; transition: border-color .3s, transform .3s; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-thumb:hover { transform: translateY(-2px); }
.rp-thumb.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.rp-info h1 { font-size: clamp(30px,4vw,46px); margin: 8px 0 18px; }
.rp-desc { color: #d0cabd; font-size: 16px; line-height: 1.75; margin: 0 0 26px; }
.rp-meta { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.rp-meta li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 15px 20px; background: var(--ink-2); }
.rp-meta svg { width: 22px; height: 22px; color: var(--gold); }
.rp-meta span { color: var(--muted); font-size: 14px; }
.rp-meta b { color: var(--cream-text); font-weight: 600; font-size: 15px; }
/* Форма поиска дат на странице номера */
.rp-search { margin: 6px 0 30px; scroll-margin-top: 96px; }
.rp-search .hero__book { max-width: 100%; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.rp-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-soft); border-radius: 40px; color: #cdc7ba; font-size: 13.5px; }
.rp-chips svg { width: 16px; height: 16px; color: var(--gold); }
.rp-price { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; background: var(--gold-soft); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 22px; }
.rp-price small { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); }
.rp-price b { font-family: var(--serif); font-size: 30px; color: var(--gold-lite); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.rp-actions .btn { flex: 1 1 auto; }
.rp-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.rp-back { margin-top: 44px; }
@media (max-width: 900px) {
  .rp-grid { grid-template-columns: 1fr; }
  .rp-gallery { position: static; }
  .rp-thumbs { grid-template-columns: repeat(5, 1fr); }
}

/* ============ Доп. мобильные правки ============ */
@media (max-width: 560px) {
  .header { padding: 14px 0; }
  .header__cta .btn-gold { display: none; }      /* бронь - в бургер-меню */
  .brand img { height: 44px; }
  .rroom__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .rroom__price { display: flex; align-items: baseline; gap: 8px; }
  .rroom__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .rroom__btns .btn { width: 100%; justify-content: center; }
  .rooms-cta .btn, .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
  .rp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .rp-actions .btn { flex: 1 1 100%; }
  .hero__book { padding: 16px; }
  .hero__book .hb-label { gap: 4px; margin-bottom: 10px; }
  .fab { right: 14px; bottom: 14px; }
  .fab a { width: 50px; height: 50px; }
  .section { padding: clamp(52px, 12vw, 80px) 0; }
  .rev-top { gap: 18px; }
}
@media (max-width: 380px) {
  .rroom__btns { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
}

/* ============ Защита от горизонтального overflow (виджет Контур на мобильном) ============ */
html, body { overflow-x: clip; }
#WidgetHorizontalBlockId, #WidgetRoomsListId, #WidgetHorizontalAvailabilityCalendarId {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.hero__book, .bw-block { max-width: 100%; }
