/* KS-Dewoz site styles - light, professional B2B */
:root {
  --primary: #0f4c81;
  --primary-dark: #0b3a63;
  --accent: #f5b942;
  --ink: #1a2733;
  --muted: #5c6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --line: #e3eaf1;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 42, 67, 0.08), 0 8px 24px rgba(15, 42, 67, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--muted); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo-img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:hover { text-decoration: none; color: var(--primary); }
.nav > a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-cta {
  margin-left: 14px;
  border-bottom: none !important;
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
  padding: 10px 22px;
}
.nav-cta:hover {
  background: #e0a02e;
  border-color: #e0a02e;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* buttons */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s ease; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* hero */
.hero { background: linear-gradient(160deg, #f2f7fc 0%, #e8f0f8 55%, #ffffff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 24px 84px; }
.eyebrow { display: inline-block; background: #e5eef7; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 22px; color: var(--primary); }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-panel {
  position: relative; height: 360px; border-radius: 16px;
  background: linear-gradient(150deg, var(--primary) 0%, #1a6bab 60%, #2a86c8 100%);
  box-shadow: var(--shadow); overflow: hidden;
}
.hp-grid {
  position: absolute; inset: 0; opacity: 0.25;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hp-line { position: absolute; height: 2px; background: rgba(255,255,255,.5); left: -10%; right: -10%; }
.hp-line:nth-child(1) { top: 28%; transform: rotate(-8deg); }
.hp-line:nth-child(2) { top: 52%; }
.hp-line:nth-child(3) { top: 74%; transform: rotate(5deg); }
.hp-tag {
  position: absolute; background: rgba(255,255,255,.92); color: var(--primary-dark);
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; right: 24px; top: 22%;
}
.hp-tag-2 { top: 60%; right: 40%; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.link-more { font-weight: 600; color: var(--primary); white-space: nowrap; }

/* cards & grids */
.grid { display: grid; gap: 24px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: all 0.18s ease; display: block; color: inherit;
}
.card:hover { text-decoration: none; box-shadow: var(--shadow); border-color: #cdd9e5; transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; background: #e9eff5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-article .card-body { gap: 8px; }
.card-product .link-more { font-size: 14px; margin-top: auto; padding-top: 8px; }
.grid-industries { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-industry { display: flex; flex-direction: column; gap: 10px; }
.card-industry .industry-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: #e5eef7; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.card-industry .industry-icon svg { width: 26px; height: 26px; }
.card-industry .link-more { margin-top: auto; padding-top: 8px; font-size: 14px; }
.badge {
  display: inline-block; align-self: flex-start; background: #e5eef7; color: var(--primary-dark);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.badge-soft { background: #eef3f7; color: var(--muted); font-weight: 600; }

/* product image placeholder */
.ph-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #b9c8d6; background: repeating-linear-gradient(45deg, #eef3f8, #eef3f8 12px, #e6edf4 12px, #e6edf4 24px);
}
.ph-img svg { width: 44%; height: 44%; }
.ph-img-lg svg { width: 30%; height: 30%; }

/* filter pills */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 600; background: #fff;
}
.pill:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* page head */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9eff5; aspect-ratio: 4 / 3; }
.product-media img, .product-media .ph-img { width: 100%; height: 100%; object-fit: cover; }
.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 14.5px; }
.specs-table th, .specs-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
.specs-table th { background: var(--bg-alt); color: var(--muted); font-weight: 600; white-space: nowrap; width: 38%; }

/* prose */
.prose { font-size: 16.5px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose pre { background: #0d2740; color: #dbe9f5; padding: 16px 18px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.prose code { background: #eef3f8; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: 4px 18px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.inquiry-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary);
}
.hp-field { position: absolute; left: -5000px; top: -5000px; opacity: 0; }
.form-ok, .form-err { padding: 14px 18px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.form-ok { background: #e7f6ec; color: #17643a; border: 1px solid #b8e3c6; }
.form-err { background: #fdecec; color: #a12626; border: 1px solid #f2c4c4; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, #16689f 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* footer */
.site-footer { background: #0d2b45; color: #c9d6e2; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid a { display: block; color: #c9d6e2; margin-bottom: 8px; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { color: #fff; }
.footer-grid p { font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #8fa5b8; }

/* responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .hero h1 { font-size: 34px; }
  .hero-art { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 12px 0 0; text-align: center; background: var(--accent); color: var(--primary-dark); }
  .nav-toggle { display: block; }
  h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
