:root {
  --bg-primary: #0F1115;
  --bg-secondary: #1A1D23;
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border: #2D313A;
  --success: #10B981;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', system-ui, sans-serif;

  /* legacy aliases used by old selectors */
  --bg-color: var(--bg-primary);
  --bg-color-light: var(--bg-secondary);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --accent-primary: var(--accent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image: linear-gradient(rgba(15,17,21,0.93), rgba(15,17,21,0.97)), url('/blueprint.png');
  background-size: 400px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────────────── */
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; margin-bottom: 32px; letter-spacing: -0.5px; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; margin-bottom: 16px; }
h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
p  { font-size: 16px; margin-bottom: 20px; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
  border: none; font-size: 16px; font-family: var(--font-main);
}
.btn-primary {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #0F1115;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--accent-glow); }
.btn-secondary {
  background: var(--glass-bg); color: var(--text-main);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ── Header ─────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,17,21,0.75); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border); transition: background 0.3s;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-top { font-size: 22px; font-weight: 900; letter-spacing: 3px; background: linear-gradient(135deg,#FFF,#9CA3AF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-bottom { font-size: 13px; font-weight: 800; letter-spacing: 8px; background: linear-gradient(135deg,#FBBF24,#F59E0B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-top: 4px; }
.nav-list { display: flex; gap: 36px; list-style: none; }
.nav-list a { font-weight: 500; color: var(--text-muted); transition: color 0.3s; position: relative; }
.nav-list a:hover { color: #FFF; }
.nav-list a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-list a:hover::after { width: 100%; }
.phone { font-weight: 600; color: var(--accent); transition: opacity 0.3s; }
.phone:hover { opacity: 0.8; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 220px 0 120px; min-height: 100vh;
  display: flex; align-items: center; position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, rgba(15,17,21,0.97) 0%, rgba(15,17,21,0.7) 55%, rgba(15,17,21,0.4) 100%),
              url('/hero_steel.jpg') center/cover no-repeat;
}
#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.hero-container { position: relative; z-index: 1; max-width: 850px; }
.hero-subtitle { font-size: clamp(16px,2vw,20px); max-width: 640px; margin-bottom: 48px; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Features / Guarantees ──────────────────────────── */
.features { padding: 100px 0; background: var(--bg-secondary); position: relative; }
.features::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
  padding: 40px; background-color: var(--bg-secondary);
  border-radius: 12px; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  background-size: cover; background-position: center;
  position: relative; z-index: 1; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.feature-card::before { content: ''; position: absolute; inset: 0; background: rgba(15,17,21,0.88); z-index: -1; transition: background 0.3s; }
.feature-card:hover::before { background: rgba(15,17,21,0.75); }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.card-icon { margin-bottom: 24px; line-height: 1; }
.card-icon svg { width: 52px; height: 52px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.feature-card h3 { margin-bottom: 12px; font-size: 20px; }
.feature-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }

/* ── Catalog ─────────────────────────────────────────── */
.catalog { padding: 100px 0; }
.catalog-header { margin-bottom: 50px; }

/* Tabs */
.catalog-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-tab {
  padding: 10px 22px; border-radius: 24px; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  font-family: var(--font-main); transition: all 0.25s;
}
.cat-tab:hover { border-color: rgba(245,158,11,0.5); color: var(--text-main); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #0F1115; }

/* Grid & Cards */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.product-card {
  background: var(--bg-secondary); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.4s; display: flex; flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }
.product-image { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--border); transition: transform 0.6s; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-image-wrapper { overflow: hidden; }
.product-info { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 18px; margin-bottom: 8px; }
.product-info p { font-size: 14px; line-height: 1.5; flex-grow: 1; }
.product-price { font-size: 22px; font-weight: 800; color: var(--accent); margin: 16px 0; }

/* Card features list */
.card-features { list-style: none; margin: 10px 0 16px; padding: 0; }
.card-features li { font-size: 13px; color: var(--text-muted); padding: 4px 0; padding-left: 18px; position: relative; }
.card-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Card meta (lead time / weight) */
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.card-meta span { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }

/* ── Technologies ────────────────────────────────────── */
.technologies { padding: 100px 0; background: var(--bg-secondary); position: relative; }
.technologies::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.tech-item {
  padding: 32px 28px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-primary);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.tech-item:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.4); }
.tech-icon { font-size: 40px; margin-bottom: 16px; line-height: 1; }
.tech-item h4 { font-size: 16px; margin-bottom: 8px; }
.tech-item p { font-size: 13px; margin-bottom: 0; line-height: 1.5; }

/* ── Equipment (legacy, kept for compat) ─────────────── */
.equipment { padding: 100px 0; background: var(--bg-secondary); position: relative; }
.equipment::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.equipment-item {
  padding: 28px 32px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-primary);
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.equipment-item::before {
  content: '→'; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 700; opacity: 0;
  transition: opacity 0.3s, left 0.3s;
}
.equipment-item:hover { border-color: var(--accent); transform: translateX(4px); }
.equipment-item:hover::before { opacity: 1; left: 16px; }
.equipment-item h4 { color: var(--text-main); margin-bottom: 6px; }
.equipment-item p { font-size: 14px; margin-bottom: 0; }

/* ── Process / Route Map ─────────────────────────────── */
.process { padding: 100px 0; }

.process-header { text-align: center; margin-bottom: 72px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.process-subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 16px auto 0; }

/* Route map container */
.route-map {
  position: relative;
  padding: 0 0 40px;
}

/* The vertical track line */
.route-track {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}
.route-map.track-on .route-track { transform: scaleY(1); }

/* Each step row */
.route-step {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}
.route-step.rs-right { flex-direction: row; }
.route-step.rs-left  { flex-direction: row-reverse; }

/* Center node */
.route-node {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.node-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
  position: relative; z-index: 2;
}
.node-ring--finish {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.node-pulse {
  position: absolute;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.route-step.in-view .node-ring {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.05);
}
.route-step.in-view .node-pulse {
  animation: nodePulse 2s ease-out 0.4s infinite;
}
@keyframes nodePulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Step card */
.step-card {
  flex: 1;
  max-width: calc(50% - 52px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;

  /* Initial hidden state */
  opacity: 0;
  transform: translateX(40px);
}
.rs-left .step-card { transform: translateX(-40px); }
.route-step.in-view .step-card {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.25,1,0.5,1),
              border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover { border-color: rgba(245,158,11,0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }

/* Decorative background number */
.step-num-bg {
  position: absolute; top: 12px; right: 16px;
  font-size: 52px; font-weight: 900; line-height: 1;
  color: var(--accent); opacity: 0.06;
  pointer-events: none; user-select: none;
  font-variant-numeric: tabular-nums;
}

.step-body h4 { font-size: 17px; margin-bottom: 8px; }
.step-body p  { font-size: 14px; line-height: 1.6; margin-bottom: 14px; color: var(--text-muted); }

.step-result {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--success);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  padding: 5px 12px;
}
.step-result--finish {
  color: var(--accent);
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
}

/* Connector arrow from node to card (right) */
.rs-right .step-card { margin-left: 20px; }
.rs-left  .step-card { margin-right: 20px; }

/* Responsive: mobile collapses to single column */
@media (max-width: 768px) {
  .route-track { left: 28px; }
  .route-step { flex-direction: row !important; align-items: flex-start; }
  .route-node { width: 56px; }
  .node-ring  { width: 52px; height: 52px; font-size: 20px; }
  .node-pulse { width: 52px; height: 52px; }
  .step-card  {
    max-width: calc(100% - 72px);
    margin-left: 16px !important;
    margin-right: 0 !important;
    /* reset animation direction for mobile */
    transform: translateX(30px);
  }
  .route-step.in-view .step-card { transform: translateX(0); }
  .step-num-bg { font-size: 40px; }
}

/* ── Calculator ──────────────────────────────────────── */
.calculator { padding: 100px 0; }

/* Category buttons */
.calc-cat-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.calc-cat-btn {
  padding: 10px 20px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  font-family: var(--font-main); transition: all 0.25s;
}
.calc-cat-btn:hover { border-color: rgba(245,158,11,0.5); color: var(--text-main); }
.calc-cat-btn.active { background: rgba(245,158,11,0.12); border-color: var(--accent); color: var(--accent); }

/* Batch warning */
.batch-warning {
  padding: 12px 16px; border-radius: 8px; margin-top: 12px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.4);
  color: var(--accent); font-size: 14px; font-weight: 500;
}

.calc-wrapper {
  display: flex; gap: 60px; align-items: flex-start;
  background: var(--bg-secondary); border-radius: 12px; padding: 60px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.calc-info { flex: 1; }
.calc-features { list-style: none; margin-top: 24px; }
.calc-features li { margin-bottom: 12px; font-weight: 500; color: var(--text-muted); }
.calc-form {
  flex: 1; background: var(--bg-primary);
  padding: 40px; border-radius: 12px; border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); font-size: 14px; }
.form-control {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-main); font-size: 15px; font-family: var(--font-main);
  transition: border-color 0.3s;
}
select.form-control {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer;
  padding-right: 40px;
}
select.form-control option { background: var(--bg-primary); color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--accent); }

/* Radio buttons */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color 0.2s, background 0.2s; font-size: 14px;
  color: var(--text-muted);
}
.radio-label input[type="radio"] { display: none; }
.radio-label:has(input:checked) { border-color: var(--accent); color: var(--text-main); background: rgba(245,158,11,0.08); }
.radio-label:hover { border-color: rgba(245,158,11,0.5); }

/* Calc result */
.calc-result {
  margin-top: 24px; padding: 20px; border: 1px solid var(--border);
  border-radius: 8px; background: rgba(245,158,11,0.05);
}
.price-val { font-size: 28px; font-weight: 800; color: var(--accent); margin: 6px 0; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { padding: 100px 0; background: var(--bg-secondary); }
.faq-list { max-width: 800px; margin: 0 auto 60px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-question {
  padding: 20px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  color: var(--text-main); user-select: none;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--accent); transition: transform 0.3s; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* Certificates */
.cert-block { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cert-placeholder {
  width: 180px; height: 120px; border: 1px dashed var(--border);
  border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); font-size: 13px; transition: border-color 0.3s;
}
.cert-placeholder:hover { border-color: var(--accent); }
.cert-placeholder span { font-size: 32px; }
.cert-placeholder p { margin: 0; font-size: 13px; }

/* ── Modal ───────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 40px; max-width: 680px; width: 90%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: scale(0.95); transition: transform 0.3s;
}
.modal.open .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-muted);
  font-size: 28px; cursor: pointer; transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: var(--text-main); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-placeholder {
  aspect-ratio: 4/3; border: 1px dashed var(--border);
  border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); transition: border-color 0.3s;
}
.gallery-placeholder:hover { border-color: var(--accent); }
.gallery-placeholder span { font-size: 36px; }
.gallery-placeholder p { margin: 0; font-size: 13px; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 80px 0 30px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-desc { margin-top: 20px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer h4 { margin-bottom: 20px; font-size: 16px; color: var(--text-main); font-weight: 700; }
.footer-links a, .footer-contact a { color: var(--text-muted); transition: color 0.3s; font-size: 15px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-links li, .footer-contact p { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ── Chat Widget ─────────────────────────────────────── */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 16px;
  pointer-events: none;
}
.chat-window {
  width: 380px; height: 520px; background: var(--bg-secondary);
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.25,1,0.5,1);
}
.chat-window.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.chat-toggle {
  height: 44px; border-radius: 22px;
  padding: 0 18px; gap: 8px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  box-shadow: 0 8px 24px var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto; transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #0F1115;
}
.chat-toggle:hover { transform: scale(1.05); box-shadow: 0 12px 32px var(--accent-glow); }
.chat-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-title { display: flex; align-items: center; gap: 12px; }
.chat-avatar { font-size: 22px; background: rgba(255,255,255,0.05); padding: 8px; border-radius: 50%; }
.chat-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; display: inline-block; }
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; line-height: 1; }
.chat-close:hover { color: var(--text-main); }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; word-break: break-word; line-height: 1.5; }
.message.ai { background: rgba(255,255,255,0.05); align-self: flex-start; border-bottom-left-radius: 4px; }
.message.user { background: var(--accent); color: #0F1115; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-input-area { padding: 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 24px; color: var(--text-main);
  outline: none; font-size: 14px; font-family: var(--font-main);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent); border: none; width: 40px; height: 40px;
  border-radius: 50%; color: #0F1115; font-size: 16px; cursor: pointer;
  transition: transform 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.1); }
.chat-attach-btn { color: var(--text-muted); cursor: pointer; padding: 0 6px; font-size: 18px; transition: color 0.2s; }
.chat-attach-btn:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-wrapper { gap: 40px; }
  .equipment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
  .nav-list { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 180px 0 80px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .features-grid, .catalog-grid { grid-template-columns: 1fr; }
  .calc-wrapper { flex-direction: column; padding: 32px 20px; }
  .form-row { flex-direction: column; }
  .timeline { flex-direction: column; gap: 16px; overflow-x: visible; }
  .timeline::before { width: 2px; height: 100%; top: 0; left: 28px; }
  .timeline-item { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
  .timeline-step { margin-bottom: 0; flex-shrink: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cert-block { gap: 16px; }
  .chat-window { width: calc(100vw - 48px); right: 24px; }
  .footer-container { flex-direction: column; align-items: flex-start; }
  .footer-brand { max-width: 100%; }
  .equipment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .calc-form { padding: 24px 16px; }
  .radio-group { gap: 8px; }
  .radio-label { padding: 8px 12px; font-size: 13px; }
}
