:root {
  --blue: #0b5394;
  --blue-dark: #083a68;
  --blue-light: #e8f1fa;
  --teal: #0e9594;
  --ink: #1c2733;
  --muted: #5a6b7b;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --border: #dde7ef;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(8, 58, 104, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--blue); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  font-weight: 700; font-size: 15px; text-align: center; transition: 0.2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, #1272b8 100%);
  color: #fff; padding: 88px 0 96px;
}
.hero h1 { font-size: 42px; line-height: 1.2; max-width: 720px; }
.hero p.lead { font-size: 19px; margin: 18px 0 32px; max-width: 640px; color: #dcebfa; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust bar */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 22px 20px; gap: 12px; }
.trust-item { text-align: center; }
.trust-item .num { font-size: 30px; font-weight: 800; color: var(--blue); }
.trust-item .lbl { font-size: 14px; color: var(--muted); }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; color: var(--blue-dark); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card img { height: 220px; width: 100%; object-fit: contain; background: #fff; padding: 14px; }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--blue-dark); font-size: 20px; margin-bottom: 8px; }
.card ul { margin: 10px 0 18px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin-bottom: 4px; }
.card .more { margin-top: auto; font-weight: 700; }

.badge {
  display: inline-block; background: var(--teal); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 20px; font-weight: 700; margin-bottom: 8px;
}

/* Feature list */
.feature-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.feature-row .ico {
  flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature-row h4 { color: var(--blue-dark); margin-bottom: 4px; }
.feature-row p { color: var(--muted); font-size: 14.5px; }

/* Spec tables */
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 14px; }
table.spec th, table.spec td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
table.spec th { background: var(--blue-light); color: var(--blue-dark); width: 38%; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--teal) 100%); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: #e2f3f3; margin-bottom: 24px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 6px; display: none; font-size: 14.5px; }
.form-status.ok { display: block; background: #e6f7ec; color: #14713d; border: 1px solid #b7e4c7; }
.form-status.err { display: block; background: #fdeaea; color: #a12727; border: 1px solid #f3c1c1; }

/* Contact info list */
.contact-info li { list-style: none; display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.contact-info .ico { flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #c9dcee; padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #c9dcee; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; text-align: center; font-size: 13px; color: #8fb4d6; }

/* Customers page */
.cust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cust-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 12px 12px; text-align: center; transition: 0.2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 96px;
}
.cust-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.cust-tile img { max-height: 52px; max-width: 85%; object-fit: contain; }
.cust-tile span { font-weight: 600; font-size: 13px; color: var(--blue-dark); line-height: 1.3; }
.cust-tile .cn { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.cust-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 24px; }
@media (max-width: 900px) { .cust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cust-grid { grid-template-columns: repeat(2, 1fr); } }

/* Admin */
.admin-wrap { max-width: 1080px; margin: 40px auto; padding: 0 20px; }
.admin-login { max-width: 420px; margin: 80px auto; text-align: center; }
.inq-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.inq-table th, .inq-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.inq-table th { background: var(--blue-dark); color: #fff; position: sticky; top: 68px; }
.inq-table tr:nth-child(even) { background: var(--bg-alt); }
.tag-new { background: var(--teal); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.del-btn { background: none; border: 1px solid #d66; color: #a12727; border-radius: 5px; padding: 3px 9px; cursor: pointer; font-size: 12.5px; }
.del-btn:hover { background: #fdeaea; }

/* Patents & trademark certificates */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.cert-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 16px 14px; text-align: center; transition: 0.2s;
}
.cert-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.cert-card img {
  display: block; margin: 0 auto; height: 330px; width: auto; max-width: 100%;
  border: 1px solid var(--border); border-radius: 4px; background: #fff;
}
.cert-card h4 { margin: 12px 0 4px; font-size: 15px; color: var(--blue-dark); }
.cert-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cert-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } .cert-card img { height: 320px; } }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 20px; gap: 14px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; }
}
