/* ═══════════════════════════════════════════════════════
   common.css — общие стили: reset, шапка, подвал, скроллбар
   ═══════════════════════════════════════════════════════ */

/* ── RESET & ROOT ──────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box }
html { scrollbar-gutter: stable; overflow-x: hidden }
:root {
  --bg: #0c0c0c;
  --surface: #181818;
  --surface2: #222;
  --accent: #c8a96e;
  --accent-light: #e0c485;
  --text: #ececec;
  --text-muted: #888;
  --text-dim: #555;
  --border: #252525;
  --radius: 6px;
  --tr: 0.2s ease;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 40px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.logo-img { height: 40px; width: auto; display: block }
.logo-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
  font-weight: 300;
  border-left: 1px solid rgba(255,255,255,.1);
  padding-left: 18px;
  line-height: 1.4;
  max-width: 220px;
}
.site-nav { display: flex; gap: 32px; list-style: none }
.site-nav a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--tr);
}
.site-nav a:hover,
.site-nav a.active { color: #fff }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all .3s ease;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px) }
.burger.open span:nth-child(2) { opacity: 0 }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px) }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(0,0,0,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  z-index: 199;
}
.mobile-nav.open { display: flex }
.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color var(--tr);
}
.mobile-nav li:last-child a { border-bottom: none }
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--text) }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand strong { color: var(--accent) }
.footer-brand p { font-size: 12px; color: var(--text-muted); margin-top: 4px }
.footer-social { display: flex; gap: 18px }
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .05em;
  transition: color var(--tr);
}
.footer-social a:hover { color: var(--accent) }
.footer-copy { font-size: 12px; color: var(--text-dim) }

/* ── SCROLL HINT ARROW ───────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .4s ease;
  animation: scrollHintBounce 2.4s ease-in-out infinite;
}
.scroll-hint::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  margin: 5px auto 0;
}
.scroll-hint.hidden { opacity: 0 !important; pointer-events: none }

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0) }
  50%       { transform: translateX(-50%) translateY(7px) }
}

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px }

/* ── RESPONSIVE: TABLET ─────────────────────── */
@media (max-width: 1024px) {
  .site-header { padding: 0 24px; height: 72px }
  .logo-img { height: 38px }
  .logo { gap: 14px }
  .logo-tagline { font-size: 11px; padding-left: 14px; max-width: 180px }
  .site-nav { gap: 24px }
  .site-nav a { font-size: 12px }
}

/* ── RESPONSIVE: MOBILE ─────────────────────── */
@media (max-width: 768px) {
  html { scrollbar-gutter: auto }
  .site-header { padding: 0 16px; height: 60px }
  .logo-img { height: 32px }
  .logo { gap: 10px }
  .logo-tagline { display: none }
  .site-nav { display: none }
  .burger { display: flex }
  .mobile-nav { top: 60px }
  .site-footer {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .site-header { height: 54px; padding: 0 12px }
  .logo-img { height: 26px }
  .mobile-nav { top: 54px }
}
