/* ============================================================
   БРИДЖ ХАУС СОЧИ — базовые стили
   Палитра: глубокий морской синий + песок + золото
   ============================================================ */

:root {
  /* цвета */
  --navy-950: #051524;
  --navy-900: #071C30;
  --navy-800: #0A2440;
  --navy-700: #103459;
  --navy-600: #17466F;
  --sea-600:  #1573B6;
  --sea-500:  #2E9CD8;
  --sea-300:  #8FD0F0;
  --gold-600: #B08D45;
  --gold-500: #C9A45C;
  --gold-400: #DCC08A;
  --gold-100: #F4E9D4;
  --sand-100: #F8F5EF;
  --sand-200: #F0EAE0;
  --sand-300: #E3D9C9;
  --ink-900:  #13222F;
  --ink-700:  #2C4256;
  --ink-500:  #48596B;
  --ink-300:  #8DA0B0;
  --white:    #FFFFFF;
  --ok-600:   #1F8A5D;
  --ok-100:   #E2F4EC;
  --busy-600: #C0392B;
  --busy-100: #FCEAE8;
  --new-600:  #B07818;
  --new-100:  #FCF3DD;

  /* шрифты */
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif; /* остался только для герой-баннеров */
  --ff-text: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-logo: 'Unbounded', 'Manrope', sans-serif;

  /* прочее */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 44px rgba(10, 36, 64, .14);
  --shadow-card: 0 10px 30px rgba(10, 36, 64, .10);
  --shadow-pop: 0 30px 80px rgba(7, 28, 48, .35);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { user-select: none; }
a { color: var(--sea-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sea-500); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-text); font-weight: 700; line-height: 1.22; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.01em; }
h4 { font-size: 1.15rem; font-family: var(--ff-text); font-weight: 700; }

/* ГЕРОЙ-БАННЕРЫ — не трогаем: крупный заголовок остаётся Playfair Display,
   мелкий текст в герой наследует Manrope от body */
.hero h1, .page-hero h1 { font-family: var(--ff-display); font-weight: 600; line-height: 1.18; letter-spacing: 0; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold-400); color: var(--navy-900); }
:focus-visible { outline: 3px solid rgba(201, 164, 92, .75); outline-offset: 2px; border-radius: 4px; }

/* ---------- утилиты ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  /* карточные блоки (со скруглением) — ближе к краям, чем текст */
  .apts-grid, .related-grid, .reviews-grid, .reviews-grid-full,
  .amen-grid, .adv-grid, .loc-grid, .apt-radio-cards {
    margin-left: -11px; margin-right: -11px;
  }
}
/* дети grid-контейнеров могут сжиматься ниже min-content —
   защита от горизонтального переполнения на узких экранах */
[class*="grid"] > *,
.split > *, .apt-hero-wrap > *, .apt-content-grid > *,
.booking-layout > *, .pay-grid > *, .contacts-grid > *,
.quick-book > *, .footer-grid > * { min-width: 0; }
/* ---------- прелоадер: закат над морем (Сочи) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; overflow: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* небо — градиент заката */
.preloader-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #0a1e35 0%, #0d2b4a 20%, #1a3a5e 38%,
    #2c5f7a 50%, #b8865a 62%, #d4a574 68%,
    #1a3a5e 72%, #0d2238 100%);
}

/* солнце */
.preloader-sun {
  position: absolute; top: 62%; left: 50%;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe8b8, #e8a85c 50%, #c8884a 80%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 50px 12px rgba(232,168,92,.5), 0 0 100px 30px rgba(232,168,92,.25);
  animation: sun-glow 3s ease-in-out infinite;
}
@keyframes sun-glow {
  0%, 100% { box-shadow: 0 0 50px 12px rgba(232,168,92,.5), 0 0 100px 30px rgba(232,168,92,.25); }
  50% { box-shadow: 0 0 65px 18px rgba(232,168,92,.65), 0 0 130px 40px rgba(232,168,92,.3); }
}

/* море */
.preloader-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, rgba(26,58,94,.7) 0%, rgba(10,30,56,.95) 100%);
  overflow: hidden;
}

/* блики на воде — расходящиеся круги от солнца */
.preloader-ripple {
  position: absolute; top: 0; left: 50%;
  width: 140px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(232,168,92,.4);
  transform: translateX(-50%);
  animation: ripple-spread 3s ease-out infinite;
}
.preloader-ripple-2 { animation-delay: 1s; }
.preloader-ripple-3 { animation-delay: 2s; }
@keyframes ripple-spread {
  0% { width: 80px; height: 16px; opacity: .8; border-color: rgba(232,168,92,.5); }
  100% { width: 320px; height: 60px; opacity: 0; border-color: rgba(232,168,92,.1); }
}

/* логотип */
.preloader-logo {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--gold-400); z-index: 2;
  animation: logo-float 3s ease-in-out infinite;
}
.preloader-logo .logo-mark { width: 72px; height: 42px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.4)); }
.preloader-logo-text {
  font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
  font-weight: 800; font-size: 1.35rem;
  letter-spacing: .12em; color: var(--white); text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.preloader-logo-text small {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .3em;
  color: rgba(255,255,255,.6); margin-top: 5px; text-transform: uppercase;
}
@keyframes logo-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }

@media (prefers-reduced-motion: reduce) {
  .preloader-sun, .preloader-ripple, .preloader-logo { animation: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold-500); color: var(--navy-900); padding: 10px 18px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.text-gold { color: var(--gold-500); }
.section { padding: 84px 0; position: relative; background: var(--white); }
.section-tight { padding: 56px 0; }
.section-sand { background: var(--sand-100); }
.section-navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 70%); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-text); font-weight: 800; font-size: .76rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.section-navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.muted { color: var(--ink-500); }
.small { font-size: .88rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 12px 26px rgba(176, 141, 69, .38);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(176, 141, 69, .48); color: var(--navy-950); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-outline {
  background: rgba(10, 36, 64, .35); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 8px rgba(5, 18, 32, .45);
}
.btn-outline:hover { background: rgba(255,255,255,.18); color: var(--white); border-color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #b08d45; border: 1.5px solid #b08d45; }
.btn-ghost:hover { background: #b08d45; color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- бейджи / чипы ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  background: var(--sand-200); color: var(--ink-700);
}
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-sea { background: #E3F1FA; color: var(--sea-600); }
.badge-ok { background: var(--ok-100); color: var(--ok-600); }
.badge-busy { background: var(--busy-100); color: var(--busy-600); }
.badge-new { background: var(--new-100); color: var(--new-600); }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-gold::after { display: none; }
}

/* ---------- иконки удобств ---------- */
.amen-svg { width: 26px; height: 26px; color: var(--gold-600); flex: none; }
