/* ==========================================================================
   HIGH-CONVERTING LUXURY REAL ESTATE (PERFECT DESKTOP & MOBILE HARMONY)
   ========================================================================== */

:root {
  /* Colors */
  --bg-deep: #06090e;
  --bg-card: rgba(14, 21, 32, 0.82);
  --bg-card-hover: rgba(22, 33, 48, 0.94);
  --bg-glass-pill: rgba(255, 255, 255, 0.08);
  
  /* Gold Accents (Luminous & High Contrast) */
  --gold-primary: #f2ceaa;
  --gold-light: #fff0de;
  --gold-dark: #cca172;
  --gold-gradient: linear-gradient(135deg, #ffffff 0%, #fae2c8 45%, #e8ba88 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #faecdd 50%, #d8a876 100%);
  --gold-glow: rgba(242, 206, 170, 0.35);
  
  /* Text */
  --text-white: #ffffff;
  --text-primary: #f5f8fb;
  --text-secondary: #c0d0e2;
  --text-muted: #8a9cb0;
  
  /* Shadows */
  --shadow-card: 0 16px 42px rgba(0, 0, 0, 0.65);
  --shadow-cta: 0 12px 34px rgba(242, 206, 170, 0.45);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --container-max: 1240px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background Scene with Bright Moscow River */
.hero-bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/bg_moscow.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.1) contrast(1.1) saturate(1.15);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 35%, rgba(6, 9, 14, 0.0) 0%, rgba(6, 9, 14, 0.6) 75%, #06090e 100%),
    linear-gradient(90deg, rgba(6, 9, 14, 0.94) 0%, rgba(6, 9, 14, 0.8) 48%, rgba(6, 9, 14, 0.2) 80%, rgba(6, 9, 14, 0.65) 100%),
    linear-gradient(0deg, #06090e 0%, transparent 35%, transparent 80%, rgba(6, 9, 14, 0.6) 100%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Hero Section (Desktop View)
   ========================================================================== */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0 50px;
  position: relative;
  z-index: 5;
}

.hero-layout {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Mortgage Highlight Badge */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(242, 206, 170, 0.24) 0%, rgba(242, 206, 170, 0.1) 100%);
  border: none;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  width: fit-content;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 24px rgba(242, 206, 170, 0.25), 0 6px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-pill-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: badge-shine 3.5s infinite;
}

@keyframes badge-shine {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-primary);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.rate-highlight {
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(242, 206, 170, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 0 12px rgba(242, 206, 170, 0.35);
  letter-spacing: 0.5px;
}

/* Clear Headline */
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.8vw, 3.5rem);
  line-height: 1.16;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 6px rgba(0, 0, 0, 1));
}

.hero-heading .gold-gradient-text {
  color: #fae4cb;
  background: linear-gradient(135deg, #ffffff 0%, #fae4cb 45%, #f0c393 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ==========================================================================
   ДВЕ КРУПНЫЕ ФИНАНСОВЫЕ КАРТОЧКИ (НА ВСЮ ШИРИНУ СЕТКИ)
   ========================================================================== */
.hero-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
}

.financial-stat-card {
  background: linear-gradient(145deg, rgba(18, 26, 40, 0.92) 0%, rgba(10, 15, 24, 0.96) 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 24px 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 20px rgba(242, 206, 170, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.financial-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(242, 206, 170, 0.25);
}

.financial-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 2px 0;
}

.stat-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   СЕТКА ПРЕИМУЩЕСТВ (3 КОЛОНКИ НА ДЕСКТОПЕ)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.advantage-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.advantage-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.adv-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adv-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-icon svg {
  width: 19px;
  height: 19px;
}

.adv-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.adv-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.38;
}

/* CTA Action */
.hero-action-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.btn-luxury-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gold-gradient);
  color: #06090e;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-luxury-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shine-btn 4s infinite;
}

@keyframes shine-btn {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.btn-luxury-cta:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(242, 206, 170, 0.6);
}

.btn-luxury-cta:active {
  transform: translateY(0);
}

.btn-arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-luxury-cta:hover .btn-arrow-icon {
  transform: translateX(4px);
}
