/* ============================================================
   Bomba2758 - сайт-визитка
   Токены: уголь + эмбер. Unbounded (заголовки) / JetBrains Mono
   (лейблы, терминал) / Manrope (текст).
   ============================================================ */

:root {
  --bg: #0a0908;
  --bg-soft: #0e0c0a;
  --surface: #141210;
  --surface-2: #1a1613;
  --border: #2b2521;
  --border-soft: #1e1a17;

  --fg: #f5f1ea;
  --cream: #f2e2bf;
  --muted: #a89e93;
  --muted-2: #746a61;

  --ember: #ff5a1f;
  --ember-2: #ff8a3d;
  --amber: #ffb020;
  --ember-ink: #180d05;
  --green: #5fd97a;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;

  --container: 1120px;
  --gap: clamp(16px, 3vw, 28px);

  --ease: cubic-bezier(.16,.8,.24,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(600px 400px at 85% 3%, rgba(255, 90, 31, 0.15), transparent 60%),
    radial-gradient(520px 380px at 8% 10%, rgba(255, 176, 32, 0.07), transparent 60%),
    radial-gradient(650px 460px at 92% 34%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(560px 420px at 4% 55%, rgba(255, 176, 32, 0.08), transparent 60%),
    radial-gradient(600px 440px at 88% 74%, rgba(255, 90, 31, 0.11), transparent 60%),
    radial-gradient(520px 400px at 10% 94%, rgba(255, 176, 32, 0.07), transparent 60%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.12; overflow-wrap: break-word; color: var(--cream); }

.mono { font-family: var(--font-mono); }

a:focus-visible, button:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ember);
  color: var(--ember-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin-bottom: 14px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(95, 217, 122, .18);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95, 217, 122, .18); }
  50% { box-shadow: 0 0 0 6px rgba(95, 217, 122, .1); }
}
.status-dot--off { background: var(--muted-2); box-shadow: 0 0 0 3px rgba(116, 106, 97, .18); animation: none; }

.section__title { font-size: clamp(28px, 3.4vw, 40px); max-width: 20ch; }
.section__lede { color: var(--muted); font-size: 17px; max-width: 52ch; margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--ember), var(--amber));
  color: var(--ember-ink);
  box-shadow: 0 8px 24px -8px rgba(255, 90, 31, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(255, 90, 31, .65); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--ember-2); color: var(--ember-2); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 9, 8, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header--scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(10, 9, 8, .92);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__glyph { color: var(--ember); font-weight: 700; margin-right: 6px; }
.brand__cursor { color: var(--ember-2); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav a { transition: color .15s var(--ease); }
.nav a:hover { color: var(--fg); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); margin-inline: auto; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(36px, 6vw, 64px) clamp(40px, 6vw, 60px); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero__title {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 6px;
  max-width: 15ch;
}

.hero__subtitle {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 46ch;
  margin-top: 20px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(20px, 4vw, 40px);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.stat-strip__item a { display: block; }
.stat-strip dt {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--fg);
}
.stat-strip__item a:hover dt { color: var(--ember-2); }
.stat-strip dd {
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 4px;
  max-width: 16ch;
}

/* ---------- terminal ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f56; }
.terminal__dot--y { background: #ffbd2e; }
.terminal__dot--g { background: #27c93f; }
.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.terminal__body {
  margin: 0;
  padding: 22px 22px 26px;
  min-height: 230px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__body .t-cmd { color: var(--ember-2); }
.terminal__body .t-cmd::before { content: "$ "; color: var(--muted-2); }
.terminal__body .t-out { color: var(--muted); }
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--ember-2);
  margin-left: 2px;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}

/* ============================================================
   Sections / grids / cards
   ============================================================ */
.section { padding-block: clamp(36px, 5vw, 60px); }
.section--tight { padding-block: 0 clamp(36px, 5vw, 60px); }

.grid { display: grid; gap: var(--gap); margin-top: 36px; }
.grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease);
}
.card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 31, .1);
  color: var(--ember-2);
  margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; }

.card--link:hover, .grid--projects .card:hover { border-color: var(--ember-2); transform: translateY(-3px); }
.card--muted { opacity: .68; }
.card--muted:hover { transform: none; }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card__top h3 { min-width: 0; }
.card__meta { margin-top: 10px; color: var(--ember-2); font-family: var(--font-mono); font-size: 13px; }

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-2);
  flex: none;
}
.badge--active { color: var(--green); border-color: rgba(95,217,122,.3); background: rgba(95,217,122,.08); }

/* ---------- price banner ---------- */
.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255,90,31,.14), rgba(255,176,32,.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.price-banner h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 4px; max-width: 30ch; }

/* ---------- timeline (previous projects) ---------- */
.projects__past-label { margin-top: 32px; }
.timeline { margin-top: 20px; display: flex; flex-direction: column; gap: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--border-soft);
}
.timeline__item:last-child { border-bottom: 1px solid var(--border-soft); }
.timeline__marker {
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(255,90,31,.12);
}
.timeline__item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline__item p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.timeline__item a { color: var(--ember-2); font-weight: 600; }
.timeline__item a:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
}
.contact-panel__hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}
.contact-panel__actions { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-btn:hover { border-color: var(--ember-2); transform: translateY(-2px); }
.contact-btn--static { cursor: default; }
.contact-btn--static:hover { border-color: var(--border); transform: none; }
.contact-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,90,31,.12);
  color: var(--ember-2);
  flex: none;
}
.contact-btn__icon svg { width: 19px; height: 19px; }
.contact-btn strong { display: block; font-size: 15px; font-weight: 700; }
.contact-btn small { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; font-family: var(--font-mono); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding-block: 32px 48px; margin-top: 24px; }

.footer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 12px 12px 28px;
}
.footer-pill__nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.footer-pill__nav a { transition: color .15s var(--ease); }
.footer-pill__nav a:hover { color: var(--fg); }

.site-footer__copy { color: var(--muted-2); font-size: 12.5px; text-align: center; margin-top: 20px; }

@media (max-width: 640px) {
  .footer-pill { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); padding: 20px; }
  .footer-pill__nav { flex-wrap: wrap; gap: 14px 20px; }
  .footer-pill .btn { width: 100%; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__terminal { order: -1; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav--open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--sm { display: none; }

  .grid--services { grid-template-columns: minmax(0, 1fr); }
  .grid--projects { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .price-banner { flex-direction: column; align-items: flex-start; }
}
