/* =========================================
   BASIC SETUP
   ========================================= */
:root {
  --bg-color: #050505;
  --card-bg: #111111;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent: #39FF69; /* Твой фирменный зеленый */
  --border-color: #262626;
  --container-width: 1200px;
  --header-height: 80px;
  --radius: 12px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden; /* Чтобы анимация не расширяла экран */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul, li { list-style: none; padding: 0; margin: 0; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-height); z-index: 100;
  background: rgba(5,5,5,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding: 0 5%; box-sizing: border-box;
}

.site-header .container {
  width: 100%; max-width: var(--container-width);
  margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}

.brand { font-weight: 800; font-size: 1.2rem; }
.brand .accent { color: #666; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav-link { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.nav-link:hover { color: var(--accent); }

.lang-btn {
  background: transparent; border: 1px solid #333; color: #fff;
  padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem;
  font-weight: bold;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================
   HERO SECTION (СЛЕВА ТЕКСТ, СПРАВА ЗАВОД)
   ========================================= */
.offer-shell {
  max-width: var(--container-width);
  width: 90%;
  margin: 0 auto;
  padding-top: var(--header-height);
}

.offer-hero {
  /* Важно: Flex контейнер для разделения на 2 колонки */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85vh; /* Высота почти во весь экран */
  gap: 40px;
  padding: 60px 0;
  position: relative;
}

/* Левая часть (Текст) */
.offer-hero-text {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

/* Правая часть (Анимация завода) */
.offer-hero-visual {
  flex: 1;
  height: 500px; /* Фиксируем высоту для канваса */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#factory-canvas {
  width: 100%;
  height: 100%;
  /* Градиентная маска, чтобы завод красиво уходил в темноту по краям */
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.offer-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 24px;
  background: rgba(57, 255, 105, 0.1);
  padding: 6px 12px; border-radius: 4px;
  border: 1px solid rgba(57, 255, 105, 0.2);
}

.offer-title-xl {
  font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin: 0 0 24px 0;
  color: #fff;
}
.offer-title-xl span { color: var(--accent); } /* Для выделения слов */

.offer-subtitle {
  font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px;
  max-width: 500px;
}

.offer-cta-row { display: flex; gap: 16px; }

/* Buttons */
.btn-offer {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 8px; font-weight: 700; cursor: pointer;
  transition: 0.3s;
}
.btn-offer--primary {
  background: var(--accent); color: #000; border: 1px solid var(--accent);
}
.btn-offer--primary:hover {
  background: #2ecc50; box-shadow: 0 0 15px rgba(57, 255, 105, 0.4);
}
.btn-offer--ghost {
  background: transparent; border: 1px solid #444; color: #fff;
}
.btn-offer--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }


/* =========================================
   SECTIONS & REST
   ========================================= */
.offer-section { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.offer-h2 { font-size: 2.2rem; margin-bottom: 24px; font-weight: 700; color: #fff; }
.offer-h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; color: #fff; }
.offer-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.offer-pricing-block, .offer-case-card, .offer-form {
  background: var(--card-bg); border: 1px solid var(--border-color);
  padding: 32px; border-radius: var(--radius);
}
.offer-pricing-main { font-size: 2rem; font-weight: 700; color: #fff; margin: 10px 0; }
.offer-pricing-label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; color: #666; }
.offer-pricing-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #222; }
.offer-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.offer-pill { border: 1px solid #333; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; color: #ccc; }
.offer-input, .offer-textarea {
  width: 100%; background: #000; border: 1px solid #333; color: #fff;
  padding: 12px; border-radius: 6px; box-sizing: border-box; margin-bottom: 16px;
}
.offer-form-row { display: flex; gap: 16px; }
.offer-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.offer-case-link { display: block; margin-top: 16px; font-weight: 600; text-decoration: underline; color: var(--accent); }

/* Lang Utils */
.lang-en { display: none; }
body.english-mode .lang-ru { display: none; }
body.english-mode .lang-en { display: block; }

/* Mobile Responsive */
@media (max-width: 900px) {
  .offer-hero {
    flex-direction: column-reverse; /* Завод сверху (или снизу), текст снизу */
    text-align: center;
    padding-top: 40px;
    gap: 20px;
  }
  .offer-hero-text { max-width: 100%; margin: 0 auto; }
  .offer-hero-visual { width: 100%; height: 350px; }
  .offer-subtitle { margin: 0 auto 30px; }
  .offer-cta-row { justify-content: center; }
  
  .offer-title-xl { font-size: 2.5rem; }
  .offer-grid-2, .offer-case-grid, .offer-form-row { grid-template-columns: 1fr; flex-direction: column; }
  .nav { display: none; } /* Простое скрытие меню на моб */
}