/* PARTAR — ателье цифровой разработки. Тёмная нейро-эстетика:
   глубокий сине-чёрный, стальные линии, коралловый сигнал, циановые импульсы. */

:root {
  --bg: #05070b;
  --bg-raise: #0b0e15;
  --line: #1b2130;
  --ink: #e8edf4;
  --muted: #74829a;
  --accent: #ff5c33;        /* сигнальный коралл — CTA и акценты */
  --impulse: #43d9ff;       /* циан — импульсы мозга */
  --tg: #2aabee;
  --font-display: 'Tektur', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; }
h1 em, h2 em { font-style: normal; color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  text-decoration: none; letter-spacing: 0.02em;
  padding: 15px 26px; border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-tg { background: var(--accent); color: #0b0500; box-shadow: 0 8px 28px -10px rgba(255, 92, 51, 0.55); }
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 92, 51, 0.7); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }
.btn-big { padding: 19px 36px; font-size: 17px; }

/* ---------- Шапка ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px;
  background: linear-gradient(to bottom, rgba(5,7,11,0.85), rgba(5,7,11,0));
  /* backdrop-filter убран: blur поверх fullscreen-канваса роняет fps на слабых GPU */
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,92,51,0.18), 0 0 18px rgba(255,92,51,0.7); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.14em; }
.top-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.top-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--impulse); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(67,217,255,0.5); } 50% { box-shadow: 0 0 0 6px rgba(67,217,255,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#brain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* затемнение за текстом, чтобы линии мозга не мешали читать */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(5,7,11,0.88) 0%, rgba(5,7,11,0.55) 34%, rgba(5,7,11,0) 55%); }
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(to bottom, rgba(5,7,11,0.25) 0%, rgba(5,7,11,0.72) 46%, rgba(5,7,11,0.9) 70%); }
}
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 120px 32px 80px; width: 100%; }
.eyebrow { color: var(--impulse); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 13ch; text-wrap: balance; }
.hero .lede { max-width: 46ch; margin-top: 26px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.185rem); }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.cta-note { font-size: 12.5px; color: var(--muted); }
.hero-coords { position: absolute; z-index: 2; bottom: 26px; right: 32px; font-size: 11.5px; color: #3b4658; letter-spacing: 0.08em; }

/* ---------- Секции ---------- */
.block { padding: 110px 0; border-top: 1px solid var(--line); position: relative; }
.block-alt { background: var(--bg-raise); }
.section-label { color: var(--accent); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.block h2, .finale h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 48px; max-width: 24ch; }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service {
  position: relative; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 30px 34px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-4px); border-color: #2c3752; }
.service:hover .service-num { color: var(--impulse); }
.service-num { position: absolute; top: 30px; right: 30px; font-size: 12px; color: #3b4658; letter-spacing: 0.12em; transition: color 0.2s; }
.service h3 { font-size: 21px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }

/* Процесс */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process li { position: relative; padding-top: 22px; }
.process li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255,92,51,0.05)); }
.step-num { font-size: 13px; color: var(--accent); letter-spacing: 0.15em; }
.process h3 { font-size: 19px; margin: 10px 0 10px; }
.process p { color: var(--muted); font-size: 14.5px; }

/* Почему */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-item { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: linear-gradient(160deg, rgba(67,217,255,0.05), transparent 45%); }
.why-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); display: block; margin-bottom: 12px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* Финал */
.finale { position: relative; padding: 130px 0 140px; border-top: 1px solid var(--line); text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 115%, rgba(255,92,51,0.14), transparent 70%); }
.finale-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.finale h2 { margin-bottom: 18px; }
.finale .lede { color: var(--muted); max-width: 52ch; margin-bottom: 36px; }

/* Футер */
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 26px 32px; border-top: 1px solid var(--line); color: #3b4658; font-size: 12px; }
.footer .mono { letter-spacing: 0.06em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .top-status { display: none; }
  .block { padding: 80px 0; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .hero-coords { display: none; }
  .wrap { padding: 0 22px; }
  .topbar { padding: 14px 22px; }
  .hero-inner { padding: 110px 22px 70px; }
  .btn-small { padding: 9px 13px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .top-status .dot { animation: none; }
}
