/*
  Atlas PM · Design System v2
  Тёмная техническая среда. Один акцент — синий (#3B82F6).
  Статусный светофор: зелёный / жёлтый / красный — только в данных.
  Анти-ИИ: без свечений, без градиентного текста, без трёх равных карточек.
*/

:root {
  --bg:        #FFFFFF;
  --bg-2:      #F6F8FB;
  --panel:     #FFFFFF;
  --panel-2:   #F1F5F9;
  --line:      rgba(10,15,30,.09);
  --line-s:    rgba(10,15,30,.16);
  --ink:       #0A0F1E;
  --ink-2:     #475569;
  --ink-3:     #94A3B8;

  --blue:      #3B82F6;
  --blue-h:    #2563EB;
  --blue-dim:  rgba(59,130,246,.08);

  /* светофор — только для статусов данных */
  --ok:        #43C06B;
  --risk:      #D8A423;
  --crit:      #E5534B;

  --display:   'Geologica', Georgia, serif;
  --body:      'Golos Text', system-ui, sans-serif;
  --mono:      'IBM Plex Mono', ui-monospace, monospace;

  --maxw:      1280px;
  --ease:      cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(59,130,246,.18); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* фоновая сетка — заменяет AI-свечения */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 0%, transparent 75%);
}

/* ─── обёртка ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ─── типографика ─── */
.kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--blue); }

.display {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
}
.display b { font-weight: 600; }

.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em;
}
.lead { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* ─── кнопки ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: .9rem;
  padding: 15px 30px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-transform: uppercase; letter-spacing: .04em;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-s); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.link-accent {
  color: var(--blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s var(--ease);
}
.link-accent:hover { gap: 14px; }

/* ─── навигация ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom-color: var(--line); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { font-size: .9rem; color: var(--ink-2); padding: 8px 14px; transition: color .15s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .ghost { font-size: .9rem; color: var(--ink-2); }
.nav-cta .ghost:hover { color: var(--ink); }
.nav-cta .btn { padding: 10px 20px; font-size: .8rem; }
.burger { display: none; background: none; border: 1px solid var(--line-s); color: var(--ink); width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }

/* ─── секции ─── */
section { padding: 80px 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .h2 { margin: 18px 0 0; }

/* ─── dot-пульс ─── */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; position: relative; }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.4s var(--ease) infinite; opacity: 0; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ─── scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ─── футер ─── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .ct { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.foot-col a { font-size: .9rem; color: var(--ink-2); transition: color .15s var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; color: var(--ink-3); }

/* ─── адаптив ─── */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-cta .ghost { display: none; }
  section { padding: 64px 0; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta .btn { width: auto; }
  .foot-cols { gap: 32px; }
  .foot-top { flex-direction: column; }
}
/* ─── живость интерфейса ─── */
/* подъём скриншотов и карточек при наведении */
.frame, .module-media, .value-media {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.frame:hover, .module-media:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -34px rgba(10,15,30,.28);
  border-color: var(--line-s);
}
.module-media, .value-media { overflow: hidden; }
.module-media img, .value-media img { transition: transform .7s var(--ease); }
.module-media:hover img, .value-media:hover img { transform: scale(1.035); }

/* плитки модулей слегка приподнимаются */
.tile { transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.tile:hover { transform: translateY(-4px); }

/* мягкий блик по основной кнопке */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 140%; }

/* медленный дрейф (Ken Burns) для атмосферных фото */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.band-img, .mission-img, .policy-hero-img {
  animation: kenburns 24s ease-in-out infinite alternate;
  transform-origin: 60% 40%; will-change: transform;
}

/* пульс акцентной точки уже есть (.dot); ссылки-стрелки тянутся (.link-accent) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .band-img, .mission-img, .policy-hero-img { transform: none; }
}
