:root {
  --bg: #ffffff;
  --bg2: #f5f7fa;
  --card: #ffffff;
  --text: #16202b;
  --muted: #64748b;
  --line: #e5e9f0;
  --accent: #ff5a1f;
  --accent2: #16a34a;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-size: 15px; color: var(--muted); transition: color .2s; }
nav a:hover, nav a.active { color: var(--text); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-select { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer; }
/* custom language dropdown with circular flags */
.lang-dd { position: relative; user-select: none; }
.lang-btn { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--accent); }
.lang-caret { font-size: 11px; color: var(--muted); }
.flag-ico { width: 20px; height: 20px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,32,50,.14); list-style: none; padding: 6px; margin: 0; min-width: 120px; display: none; z-index: 200; max-height: 300px; overflow-y: auto; }
.lang-dd.open .lang-menu { display: block; }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.lang-item:hover { background: var(--bg2); }
.lang-item.cur { background: #fff4ef; color: var(--accent); font-weight: 700; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e64d15; }
.btn-ghost { background: transparent; border: 1px solid #3a4655; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; background: linear-gradient(90deg, rgba(9,14,20,.72) 25%, rgba(9,14,20,.25) 70%), url('../img/hero-riders.jpg') center/cover no-repeat; }
.hero-inner { padding: 90px 0; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; line-height: 1.1; color: #fff; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin: 22px 0 34px; font-size: 19px; color: #e6ecf2; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats { background: var(--bg2); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; text-align: center; }
.stat b { font-size: 34px; color: var(--accent); display: block; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 76px 0; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: 34px; font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, 265px); justify-content: center; gap: 20px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 240px; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .label { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-weight: 700; font-size: 18px; }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.p-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; box-shadow: 0 1px 3px rgba(16,32,50,.06); }
.p-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(16,32,50,.12); }
.p-card .ph { height: 210px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-card .ph img { width: 100%; height: 100%; object-fit: contain; }
.p-card .ph.cover { object-fit: cover; }
.p-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.p-card { display: flex; flex-direction: column; }
.p-card h3 { font-size: 19px; margin-bottom: 6px; }
.p-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.p-card .body .btn { margin-top: auto; }
.tag { font-size: 12px; background: #f1f4f9; color: #4a5a6a; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); }

/* Product card: badges, price, chips, swatches (borrowed from competitor UX) */
.p-card .ph { position: relative; cursor: pointer; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 6px; z-index: 2; }
.badge-sale { background: #e11d48; }
.badge-new { background: var(--accent2); }
.badge-hot { background: var(--accent); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; color: var(--accent); }
.price-cmp { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: #e11d48; background: #fdeef2; padding: 2px 8px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { font-size: 11.5px; background: #f8fafc; border: 1px solid var(--line); color: #3b4a5a; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.swatches { display: flex; gap: 6px; margin: 0 0 12px; align-items: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--line); box-shadow: 0 0 0 1px #fff inset; }
/* modal 4-spec chips */
.modal-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.m-chip { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; }
.m-chip b { display: block; font-size: 14.5px; color: var(--accent); }
.m-chip span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px){ .modal-chips { grid-template-columns: repeat(2,1fr); } }

/* USP trust bar (borrowed) */
.usp-bar { background: var(--bg2); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 0; }
.usp { display: flex; align-items: center; gap: 12px; justify-content: center; }
.usp .ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.usp b { display: block; font-size: 14.5px; }
.usp span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px){ .usp-grid { grid-template-columns: repeat(2,1fr); } .usp { justify-content: flex-start; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { color: var(--text); font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab-btn { background: #fff; border: 1px solid var(--line); color: var(--muted); padding: 9px 20px; border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 600; }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); }
.factory-gallery { display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.factory-gallery > img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.08)); }
.factory-gallery .fg-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.factory-gallery .fg-row img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.08)); }
.split h2 { font-size: 30px; margin-bottom: 16px; }
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; color: #4a5a6a; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent2); font-weight: 800; }

/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; border-left: 2px solid var(--line); }
.tl-item { margin-bottom: 30px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl-item b { color: var(--accent); font-size: 18px; }
.tl-item p { color: #4a5a6a; font-size: 15px; margin-top: 4px; }

/* Cert badges */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px; text-align: center; font-weight: 700; color: var(--text); box-shadow: 0 1px 3px rgba(16,32,50,.06); }
.cert small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; font-size: 12px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #fff4ef, #fff9f2); border-block: 1px solid var(--line); text-align: center; padding: 70px 20px; }
.cta-band h2 { font-size: 32px; margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: 0 1px 3px rgba(16,32,50,.06); }
.contact-card .ico { font-size: 34px; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14.5px; word-break: break-all; }
.contact-card a { color: var(--accent2); font-weight: 600; }
.form-wrap { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 3px rgba(16,32,50,.06); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--text); font-size: 15px; font-family: inherit; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }

/* Footer */
footer { background: #f8fafc; border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.foot-grid h4 { color: var(--text); margin-bottom: 10px; }
.foot-grid a { display: block; padding: 3px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--accent); }
.copy { border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(10,20,40,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.modal-head h3 { font-size: 22px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.modal-body { padding: 20px 24px 28px; }
.modal-body img { border-radius: 10px; background: #fff; margin-bottom: 18px; max-height: 340px; object-fit: contain; width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.gallery img { max-height: 110px; object-fit: cover; border: 1px solid var(--line); }

/* Cert photo wall */
.cert-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.cert-photos figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(16,32,50,.06); cursor: zoom-in; transition: transform .25s, box-shadow .25s; }
.cert-photos figure:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(16,32,50,.12); }
.cert-photos img { width: 100%; height: auto; }
.cert-photos figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 300; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; background: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-photos { grid-template-columns: 1fr; }
  nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(16,32,50,.08); }
  nav ul.open { display: flex; }
  .burger { display: block; }
}
