:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-alt: #f0f0eb;
  --text: #232323;
  --muted: #737373;
  --border: #e5e5e5;
  --accent: #f4511e;
  --dark: #1c1c1e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(246,246,243,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
}
.menu-toggle { display: none; background: none; border: 0; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

main, .footer { padding: 0 40px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 72px 40px 56px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero h1, .section-heading h2, .page-title h1 {
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}
.lead, .section-heading p, .page-intro p, .text-block p, .service-card p, .case-card p, .detail-list li, .faq-item p {
  color: var(--muted);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--dark); color: white; }
.btn-light { background: white; }
.btn-accent { background: var(--accent); color: white; border-color: var(--accent); }

.hero-stack { display: grid; gap: 14px; }
.hero-stack img { border-radius: 24px; object-fit: cover; height: 260px; box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
.hero-stack img:first-child { transform: translateX(18px); }
.hero-stack img:last-child { transform: translateX(-18px); }

.cards-grid, .case-grid, .product-grid, .steps-grid, .gallery-grid, .contact-grid, .about-grid {
  display: grid;
  gap: 20px;
}
.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 0 50px; }
.service-card, .case-card, .product-card, .faq-item, .about-card, .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.03);
}
.service-card img, .case-card img, .product-card img, .gallery-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.service-card h3, .case-card h3, .product-card h3 { margin: 0 0 8px; }
.service-card a, .text-link, .detail-list a { color: var(--accent); font-weight: 600; }

.case-section, .page-section { padding: 20px 0 60px; }
.section-heading { margin-bottom: 20px; }
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-link { display: inline-block; margin-top: 18px; }
.cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--dark);
  color: white;
  padding: 26px 30px;
  border-radius: 24px;
  margin: 20px 0 70px;
}
.cta-bar p { color: rgba(255,255,255,0.72); }

.page-title { padding: 56px 0 20px; }
.page-intro { max-width: 760px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 36px; }
.steps-grid .step { background: var(--surface); border: 1px solid var(--border); padding: 18px; border-radius: 16px; }
.steps-grid .step strong { display: block; margin-bottom: 8px; }
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding: 12px 0 40px; }
.detail-list { padding-left: 18px; }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-card { cursor: zoom-in; }

.faq-list { display: grid; gap: 12px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: 8px; }

.about-grid { grid-template-columns: 1fr 1fr; }
.contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.contact-card form { display: grid; gap: 12px; }
.contact-card input, .contact-card textarea, .contact-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: white;
}
.contact-card button { border: 0; cursor: pointer; }
.info-list { padding-left: 18px; }

.footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0 40px 40px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.footer h4 { color: var(--text); margin: 0 0 10px; }
.footer a { display: block; margin-bottom: 8px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 85vh; object-fit: contain; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; background: none; border: 0; color: white; font-size: 2rem; cursor: pointer;
}
.reveal { opacity: 0; transform: translateY(20px); transition: 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .contact-grid, .about-grid, .detail-row { grid-template-columns: 1fr; }
  .cards-grid, .case-grid, .product-grid, .steps-grid, .gallery-grid, .footer { grid-template-columns: 1fr 1fr; }
  .hero-stack img:first-child, .hero-stack img:last-child { transform: none; }
}

@media (max-width: 760px) {
  .topbar, main, .footer { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; position: absolute; top: 68px; right: 20px; flex-direction: column; background: white; padding: 16px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  .nav-links.is-open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding-top: 36px; }
  .cards-grid, .case-grid, .product-grid, .steps-grid, .gallery-grid, .footer { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
}
