:root {
  --brand: #1a5fa8;
  --brand-dark: #0f3d70;
  --accent: #e8842c;
  --accent-dark: #c96a18;
  --ink: #1c2530;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f6f8fb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 32, 56, .08), 0 6px 20px rgba(16, 32, 56, .06);
  --maxw: 1240px;
}

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; color: var(--ink); }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
ul { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .45rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; color: var(--brand-dark); letter-spacing: -.3px; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: .66rem; font-weight: 500; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 14px; border-radius: 7px; font-size: .94rem; font-weight: 500; color: var(--ink);
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.main-nav a.active { color: var(--brand); background: #eaf2fb; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; cursor: pointer; font-size: 1.1rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: .9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 7px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .87rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f3d70 0%, #1a5fa8 60%, #2b7bc4 100%);
  color: #fff; padding: 84px 0 76px;
}
.hero h1 { color: #fff; font-size: 2.7rem; max-width: 780px; margin-bottom: 18px; }
.hero p { color: #d6e4f5; font-size: 1.12rem; max-width: 660px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px; }
.hero-stats div strong { display: block; font-size: 1.85rem; color: #fff; line-height: 1.1; }
.hero-stats div span { font-size: .86rem; color: #b9d0ea; letter-spacing: .3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; color: var(--brand-dark); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; background: #eaf2fb; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; font-weight: 700;
}

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 24px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .thumb { position: relative; padding-top: 78%; overflow: hidden; background: var(--bg-soft); }
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 5px; letter-spacing: .3px;
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-code { font-size: .76rem; color: var(--muted); letter-spacing: 1px; font-weight: 600; }
.product-body h3 { font-size: 1.02rem; margin: 6px 0 10px; line-height: 1.45; }
.product-meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.product-meta span { display: block; }
.price { color: #c0392b; font-weight: 700; font-size: 1.12rem; margin-bottom: 4px; }
.price small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.product-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.product-foot .btn { flex: 1; padding: 9px 12px; font-size: .86rem; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-btn {
  padding: 9px 18px; border: 1px solid var(--line); background: #fff; border-radius: 30px;
  font-size: .89rem; font-weight: 500; cursor: pointer; color: var(--ink); transition: all .16s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent;
}
.thumbs img.active { border-color: var(--brand); }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .94rem; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; background: var(--bg-soft); }
.tier-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.tier-table th { background: var(--brand); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.tier-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tier-table tr:nth-child(even) td { background: #fafcfe; }

/* ---------- Content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
.check-list { list-style: none; margin-left: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 700; font-size: 1.05rem;
}
.steps { counter-reset: s; }
.step { position: relative; padding-left: 56px; margin-bottom: 26px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--brand-dark); }
.faq-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; font-size: .95rem;
  font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 95, 168, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-dark); color: #fff; padding: 58px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #bfd6ee; max-width: 620px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2338; color: #9fb3c8; padding: 54px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fb3c8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3a55; padding-top: 22px; font-size: .85rem; color: #6f8399; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 7px; }

.page-head { background: var(--bg-soft); padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }

.note-box {
  background: #fff8ed; border-left: 4px solid var(--accent); padding: 16px 20px;
  border-radius: 0 7px 7px 0; font-size: .9rem; color: #7c4a12; margin: 24px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .detail { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
