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

:root {
  --bg: #F8F9FA;
  --main: #212529;
  --text: #343A40;
  --accent: #FF6B35;
  --accent-hover: #e85a24;
  --silver: #ADB5BD;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, box-shadow .3s, padding .3s;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: .75rem 2rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--main);
  text-decoration: none;
  letter-spacing: -.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); color: var(--white) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,53,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(173,181,189,.1) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(173,181,189,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173,181,189,.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid rgba(173,181,189,.3);
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--main);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #ff8f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,53,.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,53,.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--main);
  border: 1.5px solid rgba(173,181,189,.35);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--main);
}

.hero-stat span {
  font-size: .82rem;
  color: var(--silver);
  font-weight: 500;
}

section { padding: 6rem 2rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--main);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-desc { margin: .5rem auto 0; }

.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2.2rem;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  border-color: rgba(255,107,53,.15);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #ff8f5e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .92rem;
  color: var(--silver);
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.2rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .5rem;
}

.step p {
  font-size: .88rem;
  color: var(--silver);
  line-height: 1.6;
}

.materials { background: var(--white); }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.material-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: center;
  transition: transform .3s;
  border: 1px solid transparent;
}

.material-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,53,.12);
}

.material-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.material-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .4rem;
}

.material-card p {
  font-size: .85rem;
  color: var(--silver);
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,107,53,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .25rem;
}

.why-feature p {
  font-size: .88rem;
  color: var(--silver);
  line-height: 1.6;
}

.why-visual {
  background: linear-gradient(135deg, var(--main) 0%, #3a3f44 100%);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.why-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .08;
  top: -40px;
  right: -40px;
}

.model-3d {
  width: 140px;
  height: 140px;
  border: 3px solid var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.why-visual-stats {
  display: flex;
  gap: 2rem;
}

.why-visual-stats div {
  text-align: center;
}

.why-visual-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.why-visual-stats span {
  font-size: .78rem;
  color: var(--silver);
}

.pricing { background: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2.5rem;
  border: 2px solid transparent;
  transition: transform .3s, border-color .3s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--white);
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1.2rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .5rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--main);
  margin-bottom: .25rem;
}

.pricing-card .price span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--silver);
}

.pricing-card .price-note {
  font-size: .82rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: .45rem 0;
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.cta-section {
  background: linear-gradient(135deg, var(--main) 0%, #3a3f44 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .06;
  bottom: -150px;
  left: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .04;
  top: -100px;
  right: -50px;
}

.cta-content { position: relative; }

.cta-section .section-label { color: var(--accent); }

.cta-section .section-title { color: var(--white); }

.cta-section .section-desc {
  color: var(--silver);
  margin: .5rem auto 2.5rem;
}

.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255,107,53,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .15rem;
}

.contact-item p,
.contact-item a {
  font-size: .88rem;
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: flex; gap: 1rem; }

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--main);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(173,181,189,.3);
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.file-hint {
  font-size: .78rem;
  color: var(--silver);
}

.stl-viewer {
  position: relative;
  width: 100%;
  height: 320px;
  border: 1.5px solid rgba(173,181,189,.3);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.stl-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stl-placeholder {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--silver);
  font-size: .9rem;
  padding: 1rem;
  pointer-events: none;
}

.stl-meta {
  min-height: 20px;
  margin-top: .4rem;
  font-size: .82rem;
}

.estimator-panel {
  background: var(--bg);
  border: 1.5px solid rgba(255,107,53,.2);
  border-radius: 12px;
  padding: 1.4rem;
  margin-top: .25rem;
}

.estimator-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.estimator-title::before {
  content: '💰';
}

.estimator-dims {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.estimator-dim-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--white);
  border: 1px solid rgba(173,181,189,.25);
  border-radius: 6px;
  padding: .3rem .65rem;
  font-size: .78rem;
  color: var(--text);
  font-weight: 500;
}

.estimator-dim-tag strong {
  color: var(--main);
  font-weight: 700;
}

.estimator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.estimator-controls .form-group {
  gap: .3rem;
}

.estimator-controls select,
.estimator-controls input {
  padding: .55rem .75rem;
  font-size: .82rem;
}

.estimator-result {
  background: linear-gradient(135deg, var(--accent), #ff8f5e);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 52px;
}

.estimator-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.estimator-price-details {
  font-size: .78rem;
  opacity: .9;
  text-align: right;
}

.estimator-disclaimer {
  font-size: .72rem;
  color: var(--silver);
  margin-top: .6rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .estimator-controls {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: var(--main);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--accent); }

.footer p {
  color: var(--silver);
  font-size: .82rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }

  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
