/* ============================================================
   common.css — Wave Realty | waverealty.ru
   Продажа недвижимости в Батуми
   ============================================================ */

:root {
  --gold:       #C9A96E;
  --gold-light: #E8D5B0;
  --dark:       #0D1117;
  --dark2:      #161C26;
  --dark3:      #1E2738;
  --white:      #F5F0E8;
  --gray:       #8A8F9E;
  --border:     rgba(201,169,110,0.18);
  --teal:       #4A9B8E;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--dark); color: var(--white); }
a { color: inherit; text-decoration: none; }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  padding: 18px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(13,17,23,0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
nav.scrolled { background: rgba(13,17,23,0.99); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500;
  color: var(--gold); text-decoration: none; letter-spacing: 2px;
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-sub {
  font-size: 9px; letter-spacing: 1.5px; color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 300; margin-top: 2px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.7; transition: opacity 0.2s, color 0.2s; color: inherit;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-back {
  font-size: 11px; color: var(--gray); text-decoration: none;
  letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.nav-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav-back:hover { color: var(--gold); }
.nav-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.nav-phones a {
  font-size: 12px; color: var(--gold-light); font-weight: 500;
  text-decoration: none; transition: color 0.3s; letter-spacing: 0.5px;
}
.nav-phones a:hover { color: var(--gold); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--dark2); padding: 60px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 12px;
}
.footer-brand p { font-size: 12px; color: var(--gray); line-height: 1.75; font-weight: 300; }
.footer-col h4 {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 12px; color: var(--gray); text-decoration: none;
  font-weight: 300; transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-phone {
  font-family: 'Cormorant Garamond', serif; font-size: 19px;
  color: var(--white); text-decoration: none; display: block;
  margin-bottom: 6px; transition: color 0.3s;
}
.footer-phone:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1400px; margin: 44px auto 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(138,143,158,0.45);
}

/* ── TG FLOAT ───────────────────────────────────────────────── */
.tg-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 600;
  width: 56px; height: 56px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 32px rgba(201,169,110,0.4);
  transition: transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
.tg-float:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(201,169,110,0.5); }
.tg-float svg { width: 24px; height: 24px; fill: var(--dark); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:1100px) {
  nav { padding: 18px 32px; }
  footer { padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media(max-width:640px) {
  nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-phones { display: none; }
  footer { padding: 40px 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
