/* ============================================================
   Header — sticky, transparent over hero, blurred on scroll
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), padding 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(22, 24, 28, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.site-header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

/* Logo monogram VIC */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-1);
  background: var(--bg-2);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(100deg, transparent 0%, rgba(229, 197, 143, 0.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: mark-sheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mark-sheen {
  0%        { left: -120%; }
  55%, 100% { left: 160%; }
}
.brand-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
}
.brand-text small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease-out);
}
.nav a:hover { color: var(--text-1); }
.nav a.is-active { color: var(--text-1); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--gold);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.header-phone small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

@media (max-width: 1100px) {
  .site-header .inner { grid-template-columns: auto 1fr; gap: 16px; }
  .nav { display: none; }
  .header-right .header-phone { display: none; }
  .header-right { justify-self: end; gap: 12px; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 0; }
  .site-header .inner { gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; font-size: 11px; flex: 0 0 auto; }
  .brand-text { font-size: 13px; line-height: 1.1; white-space: nowrap; }
  .brand-text small { font-size: 8px; letter-spacing: 0.22em; }
  .header-right .btn.btn-primary { padding: 8px 14px; font-size: 12px; }
  .nav-toggle { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .header-right .btn.btn-primary { display: none; }
}

/* ============================================================
   Footer — huge VICARGO monogram
   ============================================================ */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding-top: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: clamp(56px, 7vw, 100px);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
  margin: 16px 0 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-soc {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.footer-soc:hover { border-color: var(--gold); background: rgba(201, 168, 122, 0.05); }
.footer-soc [data-lucide] { width: 16px; height: 16px; color: var(--text-1); }

.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 200ms var(--ease-out);
}
.footer-col a:hover { color: var(--text-1); }

/* Massive monogram */
.footer-mono {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 8px;
  text-align: center;
}
.footer-mono-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(72px, 17vw, 280px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  white-space: nowrap;
  margin: 0;
  background: linear-gradient(
    105deg,
    rgba(245, 241, 234, 0.28) 0%,
    rgba(245, 241, 234, 0.55) 30%,
    #ffffff 44%,
    var(--gold-bright) 50%,
    #ffffff 56%,
    rgba(245, 241, 234, 0.55) 70%,
    rgba(245, 241, 234, 0.28) 100%
  );
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  animation: mono-sheen 7s linear infinite;
}
@keyframes mono-sheen {
  0%   { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--text-1); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-1);
  z-index: 100;
  padding: 80px 24px 40px;
  transform: translate3d(0, -100%, 0);
  -webkit-transform: translate3d(0, -100%, 0);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 300ms ease-out;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.is-open {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 240ms; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 300ms; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 360ms; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: 420ms; }
.mobile-menu.is-open a:nth-child(9) { transition-delay: 480ms; }
.mobile-menu.is-open a:nth-child(10) { transition-delay: 540ms; }
.mobile-menu.is-open a:nth-child(11) { transition-delay: 600ms; }
.mobile-menu.is-open a:nth-child(12) { transition-delay: 660ms; }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-1);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-close {
  position: absolute;
  top: 18px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============================================================
   Scroll reveal — плавное появление блоков при скролле.
   Активируется только при JS (класс .reveal-ready на <html>),
   без JS контент виден сразу. Уважает prefers-reduced-motion.
   ============================================================ */
.reveal-ready [data-rv] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--rv-i, 0) * 90ms);
  will-change: opacity, transform;
  filter: blur(6px);
}
.reveal-ready [data-rv="left"]  { transform: translateX(-40px); }
.reveal-ready [data-rv="right"] { transform: translateX(40px); }
.reveal-ready [data-rv="scale"] { transform: scale(0.94); }
.reveal-ready [data-rv].rv-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-rv] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Section ambient tint — тонкий медный отлив на чередующихся
   секциях для глубины и ритма (не пестрит, premium).
   Навешивается классами из boot.js.
   ============================================================ */
.section { position: relative; }
.section > .container { position: relative; z-index: 1; }
.section--tint::before,
.section--tint-r::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.section--tint::before {
  background:
    radial-gradient(ellipse 60% 75% at 8% 0%, rgba(201, 168, 122, 0.13), transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 90%, rgba(120, 68, 38, 0.10), transparent 60%);
}
.section--tint-r::before {
  background:
    radial-gradient(ellipse 60% 75% at 92% 0%, rgba(201, 168, 122, 0.13), transparent 55%),
    radial-gradient(ellipse 50% 60% at 5% 95%, rgba(120, 68, 38, 0.10), transparent 60%);
}
/* мягкая смена фона у тонированных секций — заметнее теплее графита */
.section--warm {
  background: linear-gradient(180deg, var(--bg-1) 0%, #1d1a18 50%, var(--bg-1) 100%);
}

/* === Адаптив-фиксы (финальный аудит 2026-06-26) === */
.mobile-menu { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) {
  .mobile-menu { padding: 72px 20px 28px; }
  .mobile-menu a { padding: 14px 0; font-size: 20px; }
}
@media (max-height: 620px) {
  .mobile-menu a { padding: 11px 0; font-size: 18px; }
}
.footer-mono-text { font-size: clamp(46px, 17vw, 280px); }

/* MAX icon in footer socials */
.footer-soc .footer-max-ico { width: 20px; height: 20px; }
