:root {
  --brand: #37467c;
  --brand-dark: #2a355f;
  --brand-light: #eef0f6;
  --text: #1a1a2e;
  --text-muted: #5c5c6f;
  --border: #e2e4ea;
  --white: #ffffff;
  --bg: #f7f8fa;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(55, 70, 124, 0.08);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.top-bar {
  background: var(--brand);
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 0;
}

.top-bar a { color: var(--white); opacity: 0.9; }
.top-bar a:hover { opacity: 1; }

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sep { opacity: 0.5; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 44px;
  max-width: min(220px, 52vw);
}

.logo:hover { opacity: 0.88; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--brand-light);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
}

@media (max-width: 768px) {
  .hero-banner { padding: 80px 0; }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--white);
  color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Page banner */
.page-banner {
  background: var(--brand-light);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand);
  margin-bottom: 8px;
}

.page-banner p { color: var(--text-muted); max-width: 600px; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--brand); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--brand);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header .accent-line {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 8px;
}

.card p { font-size: 0.9rem; color: var(--text-muted); }

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content */
.content-block h2 {
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 14px;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}

/* Machinery cards */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.machinery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.machinery-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.machinery-card-img {
  aspect-ratio: 4 / 3;
  background: var(--brand-light);
}

.machinery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machinery-card-body {
  padding: 18px 20px;
}

.machinery-card-body h3 {
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 6px;
}

.machinery-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .machinery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .machinery-grid { grid-template-columns: 1fr; }
}

/* Machinery table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.data-table tr:nth-child(even) td { background: var(--bg); }
.data-table tr:hover td { background: var(--brand-light); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group label .req { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

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

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Map placeholder */
.map-placeholder {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact action buttons (left-bottom of contact info column) */
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 8px;
}

/* Embedded map */
.map-frame {
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.map-frame-full {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.map-frame-full .map-embed {
  min-height: 420px;
}

/* Sitemap */
.sitemap-list {
  list-style: none;
  columns: 2;
  gap: 32px;
}

.sitemap-list li {
  padding: 8px 0;
  break-inside: avoid;
}

.sitemap-list a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1.2fr;
  gap: 40px;
  padding: 56px 20px 40px;
}

.footer-brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  margin-bottom: 20px;
}

.footer-brochure-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-qr img {
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius);
}

.footer-qr span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.footer-brand .footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 18px;
  transition: opacity var(--transition);
}

.footer-brand .footer-logo:hover { opacity: 0.92; }

.footer-brand .footer-logo img {
  width: auto;
  height: 40px;
  max-width: 100%;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }

/* Product badge */
.product-count {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    padding: 80px 24px 24px;
    transition: right var(--transition);
    z-index: 200;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
  .top-bar-inner { justify-content: center; text-align: center; }
  .hero { padding: 56px 0; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
