/* ============================================================
   NOIR × ORANGE — моушн-тема «Нуар Петербург»
   Чёрно-дымный нуар + ярко-оранжевый неон. Подключается ПОСЛЕ style.css
   и переопределяет палитру через CSS-переменные + добавляет motion-слой.
   ============================================================ */

:root {
  /* --- Noir фон: тёплый угольно-чёрный --- */
  --bg:        #0A0908 !important;
  --bg-2:      #120F0C !important;
  --bg-3:      #1A1510 !important;
  --surface:   #14100C !important;
  --surface-2: #1F1810 !important;
  --line:      rgba(255, 138, 36, 0.14) !important;
  --line-2:    rgba(255, 138, 36, 0.28) !important;

  --txt:       #F7F1E7 !important;
  --muted:     rgba(247, 241, 231, 0.66) !important;
  --faint:     rgba(247, 241, 231, 0.36) !important;

  /* --- Оранжевый неон --- */
  --neon-yellow:  #FF7A00 !important;
  --neon-magenta: #FF3D00 !important;
  --neon-cyan:    #FFB347 !important;
  --neon-pink:    #FF8C1A !important;

  --grad-1: linear-gradient(135deg, #FFB347 0%, #FF7A00 45%, #FF3D00 100%) !important;
  --grad-2: linear-gradient(135deg, #FF3D00 0%, #FF7A00 55%, #FFC069 100%) !important;
  --grad-surface: linear-gradient(160deg, rgba(255,122,0,0.10) 0%, rgba(255,61,0,0.04) 100%) !important;

  --shadow-neon-y: 0 0 0 1px rgba(255,122,0,0.40), 0 8px 28px rgba(255,122,0,0.30) !important;
  --shadow-neon-m: 0 0 0 1px rgba(255,61,0,0.38), 0 8px 30px rgba(255,61,0,0.26) !important;
  --shadow-card:   0 1px 0 rgba(255,179,71,0.05) inset, 0 22px 44px rgba(0,0,0,0.55) !important;
}

/* Жёсткая защита от горизонтального скролла */
html, body { overflow-x: clip; }
.noir-marquee { max-width: 100vw; }

/* ============================================================
   1. НУАР-АТМОСФЕРА: киноплёнка, виньетка, прожектор
   ============================================================ */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: filmGrain 0.9s steps(4) infinite;
}
@keyframes filmGrain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse 120% 95% at 50% 45%, transparent 62%, rgba(0,0,0,0.55) 100%);
}

.hero {
  background:
    radial-gradient(ellipse 80% 60% at 18% 8%,  rgba(255,122,0,0.20), transparent 60%),
    radial-gradient(ellipse 65% 55% at 92% 85%, rgba(255,61,0,0.16),  transparent 62%),
    radial-gradient(ellipse 45% 35% at 60% 40%, rgba(255,179,71,0.07), transparent 70%),
    var(--bg) !important;
  position: relative;
  overflow: hidden;
}

.hero .hero-bg::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -25%;
  width: 46%;
  height: 190%;
  background: linear-gradient(100deg, transparent 22%, rgba(255,140,26,0.10) 48%, rgba(255,179,71,0.16) 50%, rgba(255,140,26,0.10) 52%, transparent 78%);
  transform: rotate(8deg);
  filter: blur(6px);
  animation: spotlightSweep 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes spotlightSweep {
  0%   { transform: translateX(-12vw) rotate(8deg);  opacity: 0.55; }
  50%  { opacity: 1; }
  100% { transform: translateX(110vw) rotate(8deg);  opacity: 0.55; }
}

.hero-glow { animation: glowBreath 6s ease-in-out infinite alternate; }
.hero-glow.g-2 { animation-delay: -2s; }
.hero-glow.g-3 { animation-delay: -4s; }
@keyframes glowBreath {
  from { opacity: 0.55; transform: scale(0.96); }
  to   { opacity: 1;    transform: scale(1.06); }
}

/* ============================================================
   2. КИНЕТИЧЕСКАЯ ТИПОГРАФИКА
   ============================================================ */

.grad, .grad2 {
  background-image: linear-gradient(110deg, #FFB347 0%, #FF7A00 28%, #FFE3BD 50%, #FF7A00 72%, #FF3D00 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 4.5s linear infinite;
}
@keyframes textShine {
  from { background-position: 220% 0; }
  to   { background-position: -20% 0; }
}

.hero-title { text-shadow: 0 0 60px rgba(255,122,0,0.25); }

/* ============================================================
   3. МОУШН ДЛЯ ИНТЕРАКТИВА
   ============================================================ */

.reveal {
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { transform: translateY(0) scale(1); }

.formats-grid .reveal:nth-child(2n) { transition-delay: 0.07s; }
.formats-grid .reveal:nth-child(3n) { transition-delay: 0.14s; }
.how-grid .how-card:nth-child(2) { transition-delay: 0.08s; }
.how-grid .how-card:nth-child(3) { transition-delay: 0.16s; }
.how-grid .how-card:nth-child(4) { transition-delay: 0.24s; }

.fmt-card, .pr-card, .how-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s cubic-bezier(0.16,1,0.3,1), border-color 0.28s ease;
  will-change: transform;
}
.fmt-card:hover, .pr-card:hover, .how-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,122,0,0.55) !important;
  box-shadow: 0 0 0 1px rgba(255,122,0,0.35), 0 24px 48px rgba(0,0,0,0.6), 0 12px 42px rgba(255,122,0,0.18) !important;
}

.fmt-card::after, .pr-card::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,200,120,0.10) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.fmt-card:hover::after, .pr-card:hover::after { left: 160%; }

.btn { transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.25s ease; }
.btn:hover  { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary {
  background: var(--grad-1) !important;
  color: #160B02 !important;
  box-shadow: 0 6px 26px rgba(255,122,0,0.42) !important;
  animation: ctaPulse 2.8s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 26px rgba(255,122,0,0.42); }
  50%      { box-shadow: 0 6px 38px rgba(255,122,0,0.62), 0 0 0 6px rgba(255,122,0,0.07); }
}

.fmt-link { transition: color 0.2s ease, letter-spacing 0.25s cubic-bezier(0.16,1,0.3,1); }
.fmt-link:hover { color: var(--neon-yellow); letter-spacing: 0.04em; }

.nav-menu a { position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  border-radius: 2px;
}
.nav-menu a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.fc-toggle { animation: ctaPulse 2.8s ease-in-out infinite; }

/* ============================================================
   4. БЕГУЩАЯ СТРОКА (marquee)
   ============================================================ */
.noir-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background:
    linear-gradient(90deg, rgba(255,122,0,0.07), rgba(255,61,0,0.05), rgba(255,122,0,0.07)),
    var(--bg-2);
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.noir-marquee .mq-track {
  display: inline-flex;
  animation: marqueeRun 28s linear infinite;
  will-change: transform;
}
.noir-marquee:hover .mq-track { animation-play-state: paused; }
.noir-marquee span {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,241,231,0.66);
  padding: 0 18px;
}
.noir-marquee span b {
  color: #FF7A00;
  text-shadow: 0 0 18px rgba(255,122,0,0.55);
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   5. ДЕТАЛИ NOIR
   ============================================================ */

.hero-badge .dot {
  background: #FF7A00 !important;
  box-shadow: 0 0 12px rgba(255,122,0,0.9);
  animation: dotBlink 1.6s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hs-item b { color: #FF9A3D; text-shadow: 0 0 24px rgba(255,122,0,0.4); }

.how-n {
  background: linear-gradient(135deg, #FFB347 0%, #FF7A00 45%, #FF3D00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.photo-img, .gl-img, .ps-item img {
  filter: grayscale(0.35) contrast(1.08) sepia(0.12) brightness(0.94);
  transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.photo-frame:hover .photo-img,
.gl-item:hover .gl-img,
.ps-item:hover img {
  filter: grayscale(0) contrast(1.05) sepia(0) brightness(1);
  transform: scale(1.03);
}
.gl-item, .ps-item { overflow: hidden; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #120F0C; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF7A00, #FF3D00);
  border-radius: 8px;
  border: 2px solid #120F0C;
}

::selection { background: rgba(255,122,0,0.85); color: #160B02; }

.cookie-consent { border-color: rgba(255,122,0,0.45) !important; }
.cc-btn { background: #FF7A00 !important; color: #160B02 !important; }
.cc-btn:hover { background: #FF8C1A !important; }

details.faq-item summary { transition: color 0.2s ease; }
details.faq-item[open] summary span,
details.faq-item summary:hover span { color: #FF9A3D; }

/* ============================================================
   6. ACCESSIBILITY: reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero .hero-bg::after,
  .hero-glow,
  .grad, .grad2,
  .btn-primary,
  .fc-toggle,
  .hero-badge .dot,
  .noir-marquee .mq-track {
    animation: none !important;
  }
  .reveal { transition-duration: 0.01s; transform: none; }
  .fmt-card:hover, .pr-card:hover, .how-card:hover, .btn:hover { transform: none; }
}

@media (max-width: 768px) {
  body::after { opacity: 0.04; }
  .hero .hero-bg::after { display: none; }
  .noir-marquee span { padding: 0 12px; }
}
