/* VeloxStor site styles */
:root {
  --brand: #0a2540;
  --brand-2: #103a63;
  --accent: #2f7dd1;
  --accent-soft: #e3eefb;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #5b6b7b;
  --line: #dde4ec;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(10, 37, 64, .08), 0 4px 14px rgba(10, 37, 64, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px; min-height: 58px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border: 2px dashed rgba(255,255,255,.6); border-radius: 6px;
  display: grid; place-items: center; font-size: .5rem; text-align: center; line-height: 1.1; color: rgba(255,255,255,.7);
}
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a { color: #d7e3f0; padding: 8px 12px; border-radius: 6px; font-size: .92rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.lang-box { margin-left: 8px; }
.lang-box select {
  background: var(--brand-2); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; padding: 6px 8px; font-size: .85rem; cursor: pointer;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.hero {
  background: linear-gradient(120deg, var(--brand), #14508a);
  color: #fff; border-radius: var(--radius);
  padding: 48px 32px; margin-bottom: 32px;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.25; }
.hero p { margin: 0 0 22px; color: #cfe0f2; max-width: 640px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: #2668b0; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

h2.section { font-size: 1.35rem; margin: 36px 0 16px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.card a.more { font-weight: 600; font-size: .9rem; }

/* Image placeholder frames */
.ph-img {
  border: 2px dashed #b8c4d2; border-radius: 8px; background: #fdfdfe;
  min-height: 140px; display: grid; place-items: center; text-align: center;
  color: #8a99aa; font-size: .85rem; padding: 10px; gap: 2px;
}
.ph-img strong { color: #66788c; font-size: .95rem; display: block; }
.ph-img.tall { min-height: 220px; }

/* Configurator */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 20px;
  display: grid; gap: 14px;
}
.filters .row { display: flex; flex-wrap: wrap; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 160px; flex: 1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field select, .field input {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: .95rem; background: #fff; color: var(--text);
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: max-content; }
.seg button {
  background: #fff; border: none; padding: 9px 18px; font-size: .95rem; cursor: pointer; color: var(--muted); font-weight: 600;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; }
.filters .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count { font-weight: 600; color: var(--brand); }
.data-date { color: var(--muted); font-size: .8rem; margin-left: auto; }

/* Results table -> cards on mobile */
.results { display: grid; gap: 12px; }
.sys {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px;
  display: grid; gap: 8px;
}
.sys-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.sys-head .model { font-weight: 700; font-size: 1.02rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  background: var(--accent-soft); color: #205a94; letter-spacing: .03em;
}
.badge.gen { background: #eef3e6; color: #4c7020; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .84rem; color: var(--muted); }
.specs b { color: var(--text); font-weight: 600; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mods .lbl { font-size: .8rem; font-weight: 700; color: var(--muted); }
.chip {
  border: 1px solid var(--accent); color: var(--accent); border-radius: 7px;
  padding: 3px 10px; font-size: .82rem; font-weight: 600; background: #fff;
}
.chip small { color: var(--muted); font-weight: 500; }
.none { color: var(--muted); font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Product pages */
.prod-layout { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; background: #fafbfc; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--brand); color: #9fb3c8; margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 26px 16px; font-size: .82rem; display: grid; gap: 6px; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: var(--brand-2); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .lang-box { margin: 8px 0 0; }
  .lang-box select { width: 100%; }
  .hero { padding: 32px 20px; }
  .prod-layout { grid-template-columns: 1fr; }
  .data-date { margin-left: 0; }
}
