/* ==========================================================
   Гостиница «Мечта+» — основные стили
   ========================================================== */

:root {
  --navy: #14213d;
  --navy-2: #1d2f55;
  --navy-3: #0d1629;
  --gold: #e0b25b;
  --gold-2: #c9963b;
  --cream: #faf6ee;
  --ink: #1f2430;
  --muted: #6b7280;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(20, 33, 61, .10);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .18);

  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 20, 33, 61;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: #fff; overflow-x: hidden; }

.text-gold { color: var(--gold) !important; }

/* ---------- Кнопки ---------- */
.btn-gold {
  --bs-btn-color: var(--navy-3);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--navy-3);
  --bs-btn-hover-bg: #ebc277;
  --bs-btn-hover-border-color: #ebc277;
  --bs-btn-active-bg: var(--gold-2);
  --bs-btn-active-border-color: var(--gold-2);
  --bs-btn-focus-shadow-rgb: 224, 178, 91;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(224, 178, 91, .35);
}
.btn-navy {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: var(--navy-3);
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-bg: var(--gold-2);
  font-weight: 600;
}

/* ---------- Навигация ---------- */
#mainNav {
  padding: 1.1rem 0;
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
#mainNav.scrolled,
#mainNav.menu-open {
  background: rgba(13, 22, 41, .94);
  backdrop-filter: blur(10px);
  padding: .6rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
#mainNav .nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  padding: .5rem .85rem;
  position: relative;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold); }

.brand-mark {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
}
.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 60px;
  color: #fff;
  /* Чтобы поставить фото на фон, положите его в images/hero.jpg */
  background:
    url("../images/hero.jpg") center / cover no-repeat,
    radial-gradient(1200px 600px at 85% 10%, rgba(224, 178, 91, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(77, 112, 186, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 22, 41, .55) 0%, rgba(13, 22, 41, .35) 45%, rgba(13, 22, 41, .75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 30l2.4 5.3 5.6.7-4.2 3.8 1.2 5.6L40 42.6l-5 2.8 1.2-5.6L32 36l5.6-.7z' fill='%23ffffff' fill-opacity='.035'/%3E%3C/svg%3E");
}
.hero-kicker {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 600;
  font-size: .95rem;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 1.2rem 0 1rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .85);
  max-width: 720px;
  margin: 0 auto 2rem;
}
.hero-search { margin-top: 3.5rem; }
.search-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.search-card-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}

/* ---------- Виджеты Контур Отель ---------- */
.widget-slot { position: relative; }
.widget-slot.is-loaded > .widget-placeholder { display: none; }
.kontur-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  border: 1px solid #eef0f4;
}
.widget-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px;
  padding: 1rem;
  color: var(--muted);
  font-size: .95rem;
  border: 1px dashed #dfe3ea;
  border-radius: 12px;
  text-align: center;
}
.widget-placeholder a { color: var(--navy); font-weight: 700; }

/* ---------- Полоса цифр ---------- */
.stats-strip {
  background: var(--cream);
  padding: 2.5rem 0;
  border-bottom: 1px solid #efe7d6;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Секции ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(224, 178, 91, .15), transparent 60%),
    linear-gradient(160deg, var(--navy-3), var(--navy));
  color: rgba(255, 255, 255, .8);
}
.section-kicker {
  display: inline-block;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.section-dark .section-kicker { color: var(--gold); }
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-sub { max-width: 640px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; padding: .35rem 0; font-weight: 600; }
.check-list i { color: var(--gold-2); font-size: 1.2rem; }

/* ---------- Плитки «О гостинице» ---------- */
.feature-tile {
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #eef0f4;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.feature-tile:hover { transform: translateY(-6px); }
.feature-tile i { font-size: 2rem; color: var(--gold-2); }
.feature-tile h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: .8rem 0 .4rem; }
.feature-tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.tile-accent { background: var(--navy); border-color: var(--navy); }
.tile-accent h3 { color: #fff; }
.tile-accent p { color: rgba(255, 255, 255, .7); }
.tile-accent i { color: var(--gold); }

/* ---------- Карточки номеров ---------- */
.room-card {
  height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.room-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(224, 178, 91, .45), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  overflow: hidden;
}
.room-icon { font-size: 3.6rem; color: rgba(255, 255, 255, .85); transition: transform .4s ease; }
.room-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform .6s ease;
}
.room-card:hover .room-photo,
.room-card:hover .room-icon { transform: scale(1.08); }
.room-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold);
  color: var(--navy-3);
  font-weight: 800;
  font-size: .78rem;
  padding: .35rem .8rem;
  border-radius: 50px;
}
.room-badge.badge-green { background: #7fd1a8; }
.room-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.room-body p { color: var(--muted); font-size: .95rem; }
.room-amenities {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem;
  margin: 0 0 1.4rem;
  font-size: .9rem; font-weight: 600;
}
.room-amenities li { display: flex; align-items: center; gap: .4rem; }
.room-amenities i { color: var(--gold-2); }
.room-body .btn { margin-top: auto; }

/* ---------- Бронирование ---------- */
.booking-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid #eef0f4;
}
.booking-card-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 1.25rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: center; }
.steps span {
  flex: 0 0 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.steps b { display: block; color: var(--navy); }
.steps div { color: var(--muted); font-size: .95rem; }
.btn-outline-navy {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy-3);
  --bs-btn-active-color: #fff;
  font-weight: 700;
}

/* ---------- Услуги ---------- */
.service {
  height: 100%;
  padding: 1.6rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s ease, transform .3s ease;
}
.service:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.service i {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(224, 178, 91, .15);
  color: var(--gold);
  font-size: 1.5rem;
}
.service h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 1rem 0 .35rem; }
.service p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* ---------- Отзывы ---------- */
.rating-box { display: flex; align-items: center; gap: 1rem; }
.rating-score {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: var(--navy);
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 700;
}
.rating-stars { color: var(--gold-2); font-size: 1.15rem; letter-spacing: 2px; }
.rating-bar { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: .75rem; font-size: .92rem; font-weight: 600; margin-bottom: .55rem; }
.rating-bar .bar { height: 8px; background: #e9e2d2; border-radius: 10px; overflow: hidden; }
.rating-bar .bar div { height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 10px; }
.review-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.review-icon { font-size: 1.8rem; color: var(--gold-2); }
.review-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: .7rem 0 .5rem; }
.review-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Правила и FAQ ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.rule {
  display: flex; gap: .9rem; align-items: center;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--cream);
}
.rule i { font-size: 1.6rem; color: var(--gold-2); }
.rule b { display: block; color: var(--navy); }
.rule span { color: var(--muted); font-size: .92rem; }
.faq .accordion-item { border-bottom: 1px solid #eceef2; }
.faq .accordion-button { font-weight: 700; color: var(--navy); padding: 1.2rem 0; background: transparent; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--gold-2); }
.faq .accordion-body { padding: 0 0 1.2rem; color: var(--muted); }

/* ---------- Документы и реквизиты ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef0f4;
  box-shadow: 0 6px 18px rgba(20, 33, 61, .05);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.doc:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.doc-icon {
  flex: 0 0 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(224, 178, 91, .15);
  color: var(--gold-2);
  font-size: 1.3rem;
}
.doc-text { flex: 1; min-width: 0; }
.doc-text b { display: block; color: var(--navy); }
.doc-text small { color: var(--muted); }
.doc-type { flex: 0 0 auto; font-size: .8rem; font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.requisites {
  height: 100%;
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.requisites h3 { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.requisites h3 i { color: var(--gold); }
.requisites dl { margin: 0; }
.requisites dt { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); font-weight: 700; }
.requisites dd { color: #fff; margin: .15rem 0 1rem; font-weight: 600; }
.requisites dd:last-child { margin-bottom: 0; }

/* ---------- Контакты ---------- */
.contact-list {
  height: 100%;
  display: flex; flex-direction: column; gap: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row > i {
  flex: 0 0 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.2rem;
}
.contact-row h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin: 0 0 .2rem; }
.contact-row p { margin: 0; color: var(--muted); }
.contact-row a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-row a:hover { color: var(--gold-2); }
.map-card {
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef0f4;
  position: relative;
  z-index: 0;
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy-3); color: rgba(255, 255, 255, .6); padding: 3rem 0 2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.footer-hr { border-color: rgba(255, 255, 255, .15); margin: 2rem 0 1.25rem; }
.footer-legal { text-align: center; }
.footer-legal a { color: rgba(255, 255, 255, .8); }
.footer-legal a:hover { color: var(--gold); }

/* Подвал на телефоне: меню по центру, кнопка «Забронировать» на всю ширину */
@media (max-width: 767.98px) {
  .footer-links { justify-content: center; }
  .footer .btn-gold { display: block; width: 100%; }
}

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1030;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-3);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy-3); background: #ebc277; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
}
@media (max-width: 575.98px) {
  .search-card, .booking-card { padding: 1.1rem; }
  .rules { grid-template-columns: 1fr; }
  .rating-bar { grid-template-columns: 110px 1fr 30px; }
  .map-card { min-height: 320px; }
  .requisites, .contact-list { padding: 1.5rem; }
  .doc { padding: .9rem 1rem; gap: .75rem; }
}


/* ===== Контур.Отель: шрифт сайта внутри виджетов и окон бронирования ===== */
/* Цвета, кнопки и рамки задаются в js/booking.js (theme), здесь — только шрифт, его тема не меняет */
#WidgetHorizontalBlockId,
#WidgetHorizontalBlockId *,
#WidgetRoomsListId,
#WidgetRoomsListId *,
#WidgetVerticalAvailabilityCalendarId,
#WidgetVerticalAvailabilityCalendarId *,
body > [data-rendered-container-id],
body > [data-rendered-container-id] * {
  font-family: var(--bs-body-font-family) !important;
}
