:root {
  --bg: #101116;
  --bg-soft: #161821;
  --panel: #1d202b;
  --panel-light: #242837;
  --text: #f4efe7;
  --muted: #b8b1a8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e4a949;
  --accent-soft: rgba(228, 169, 73, 0.14);
  --accent-strong: #f0bd63;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(228, 169, 73, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(132, 160, 255, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 17, 22, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #8d6230);
  color: #15100a;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(228, 169, 73, 0.25);
}

.brand-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 118px 0 74px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(7, 10, 12, 0.98) 0%,
      rgba(7, 10, 12, 0.94) 26%,
      rgba(7, 10, 12, 0.72) 47%,
      rgba(7, 10, 12, 0.34) 70%,
      rgba(7, 10, 12, 0.16) 100%
    ),
    url("/assets/img/hero-forge-1920.webp") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(199, 120, 74, 0.15), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 22%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 231, 234, 0.22), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero .eyebrow {
  margin-bottom: 22px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: "Rajdhani", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  color: var(--ice);
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-shadow: 0 0 28px rgba(216, 231, 234, 0.09);
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: "Rajdhani", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #d08a59, #a95f39);
  color: #fff6ee;
  box-shadow: 0 18px 42px rgba(199, 120, 74, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 24px 54px rgba(199, 120, 74, 0.34);
}

.btn-secondary {
  color: var(--ice);
  border-color: rgba(216, 231, 234, 0.42);
  background: rgba(7, 10, 12, 0.34);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(199, 120, 74, 0.08);
}

.hero-features {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 760px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  min-width: 0;
  padding: 0 30px;
  border-right: 1px solid rgba(216, 231, 234, 0.18);
}

.hero-feature:first-child {
  padding-left: 0;
}

.hero-feature:last-child {
  border-right: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--accent);
  font-family: "Rajdhani", "Barlow Condensed", system-ui, sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.hero-feature strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ice);
  font-family: "Rajdhani", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.hero-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.terminal-top span:first-child {
  background: var(--accent);
}

.terminal-body {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 22px;
  background: rgba(8, 9, 13, 0.52);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e9dfce;
}

.terminal-body p {
  margin-bottom: 14px;
}

.terminal-body p:last-child {
  margin-bottom: 0;
}

.terminal-body span {
  color: var(--accent-strong);
}

.signal-grid {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 230px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0.9;
}

.signal-grid div {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(228, 169, 73, 0.22);
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 245px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 169, 73, 0.38);
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
}

.service-card p,
.process-item p,
.focus-points p,
.form-note {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-item > span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.focus-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.focus-panel,
.company-box,
.contact-form {
  padding: 34px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.focus-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.focus-points > div {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel-light);
  border: 1px solid var(--line);
}

.company-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.details-grid {
  display: grid;
  gap: 10px;
}

.details-grid p {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-direct {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(228, 169, 73, 0.22);
}

.contact-direct a {
  color: var(--accent-strong);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(228, 169, 73, 0.65);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.hidden-field {
  display: none;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-note a {
  color: var(--accent-strong);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--accent-strong);
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  z-index: 100;
}

.popup.active {
  display: grid;
}

.popup-box {
  width: min(430px, 100%);
  position: relative;
  padding: 32px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.popup-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.popup-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .process-grid,
  .focus-grid,
  .company-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .focus-points {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 62px 0;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  h1 {
    font-size: 42px;
  }

  .hero-card {
    min-height: 360px;
  }

  .signal-grid {
    width: 170px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
