/* ======================================================
   ВАРИАНТ B — «Industrial / Engineering» (Технологичный)
   Палитра: #111418 тёмный, #F24D20 акцент, JetBrains Mono
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #111418;
  color: #E6E8EB;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  --bg: #111418;
  --surface: #1A1E24;
  --steel: #2A2F36;
  --white: #FFFFFF;
  --text: #E6E8EB;
  --muted: #8A8F98;
  --accent: #F24D20;
  --accent-hover: #FF6B3D;
  --footer-bg: #0A0C0F;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--steel);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter 0.3s, background 0.3s;
}
.site-header.scrolled {
  background: rgba(17,20,24,0.9);
  backdrop-filter: blur(12px);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo img { width: 32px; height: 32px; }
.header-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-nav a {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 0 20px;
  transition: color 0.2s;
  position: relative;
}
.header-nav a::after {
  content: '·';
  position: absolute;
  right: -2px;
  color: var(--steel);
}
.header-nav a:last-child::after { display: none; }
.header-nav a:hover { color: var(--text); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-accent:hover { background: var(--accent-hover); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 80px 48px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(100% / 12 - 1px),
    #1A1E24 calc(100% / 12 - 1px),
    #1A1E24 calc(100% / 12)
  );
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-left h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-outline-b {
  border: 1px solid var(--steel);
  color: var(--text);
  background: transparent;
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-b:hover { border-color: var(--accent); color: var(--accent); }
.hero-right {
  position: relative;
}
.hero-right img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--steel);
}
.hero-coords {
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(17,20,24,0.8);
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

/* === SERVICES === */
.services {
  background: var(--bg);
  padding: 120px 48px;
}
.section-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--steel);
  padding: 40px 32px;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s;
  border-radius: 4px 0 0 4px;
}
.service-card:hover { border-color: #3A4049; box-shadow: 0 4px 24px rgba(242,77,32,0.05); }
.service-card:hover::before { transform: scaleY(1); }
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}
.card-rule {
  width: 32px;
  height: 1px;
  background: var(--steel);
  margin-bottom: 24px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.2s;
  display: inline-block;
}
.card-link:hover { color: var(--accent); }

/* === OBJECTS === */
.objects {
  background: var(--white);
  padding: 120px 48px;
}
.objects .section-mono { color: var(--accent); }
.objects .section-title { color: #0F1419; }
.objects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.object-card {
  border: 1px solid #E5E8EC;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}
.object-card:hover { transform: translateY(-4px); }
.object-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.object-photo img { width: 100%; height: 100%; object-fit: cover; }
.object-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
}
.object-overlay {
  position: absolute;
  inset: 0;
  background: var(--surface);
  color: var(--text);
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  line-height: 1.6;
}
.object-card:hover .object-overlay { transform: translateY(0); }
.object-body { padding: 20px 20px 24px; background: #fff; }
.object-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0F1419;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.object-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.object-table-row {
  font-size: 12px;
  color: #8A8F98;
}
.object-table-row span {
  font-family: 'JetBrains Mono', monospace;
  color: #0F1419;
  font-size: 11px;
}

/* === STATS === */
.stats {
  background: var(--bg);
  padding: 80px 48px;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1320px;
  margin: 0 auto;
}
.stat-item {
  padding: 40px;
  border-right: 1px solid var(--steel);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* === LETTER === */
.letter {
  background: var(--white);
  padding: 120px 48px;
}
.letter-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
.letter-img img {
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  border-radius: 4px;
}
.letter-content .section-mono { color: var(--accent); }
.letter-content .section-title { color: #0F1419; font-size: 36px; }
.letter-quote {
  font-size: 18px;
  color: #8A8F98;
  line-height: 1.7;
  margin-bottom: 24px;
}
.letter-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* === STAGES === */
.stages {
  background: var(--bg);
  padding: 120px 48px;
}
.stages-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}
.stages-timeline::before {
  content: '';
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 1px;
  background: var(--steel);
}
.stage-item {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.stage-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.stage-dot-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}
.stage-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.stage-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* === CONTACTS === */
.contacts {
  background: var(--surface);
  padding: 120px 48px;
  border-top: 1px solid var(--steel);
}
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1320px;
  margin: 0 auto;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--steel);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg); }
.btn-submit-full {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-full:hover { background: var(--accent-hover); }
.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-value {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 24px;
}
.map-placeholder {
  margin-top: 32px;
  width: 100%;
  height: 320px;
  background: var(--bg);
  border: 1px solid var(--steel);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  padding: 64px 48px 32px;
  border-top: 1px solid var(--steel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; }
.footer-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--steel);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .site-header { padding: 0 32px; }
  section, .services, .objects, .stats, .letter, .stages, .contacts { padding-left: 32px; padding-right: 32px; }
  .services-grid, .objects-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stages-timeline { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stages-timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .header-nav, .header-actions { display: none; }
  .site-header > .btn-accent { display: none; }
  .menu-toggle { display: flex; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px 28px;
    gap: 14px;
    border-bottom: 1px solid var(--steel);
    z-index: 90;
  }
  .hero { padding: 96px 20px 48px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-left h1 { font-size: clamp(28px, 7vw, 64px); }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { flex-wrap: wrap; gap: 12px; }
  .hero-right { display: none; }
  .services, .objects, .stats, .letter, .stages, .contacts { padding-left: 20px; padding-right: 20px; padding-top: 64px; padding-bottom: 64px; }
  .services-grid, .objects-grid { grid-template-columns: 1fr; }
  .letter-inner, .contacts-inner { grid-template-columns: 1fr; }
  .stages-timeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--steel); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 375px) {
  .footer-grid { grid-template-columns: 1fr; }
}
