:root {
  --orange: #7c3aed;
  --orange-dark: #6d28d9;
  --orange-light: #f5f0ff;
  --ink: #1a1c1e;
  --ink-soft: #4b5563;
  --line: #e8eaed;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 4px 16px rgba(16,24,40,.06);
  --shadow-lg: 0 8px 30px rgba(16,24,40,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #e5e7eb; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  background: transparent; border: none; color: #cbd5e1;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  transition: all .15s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--orange); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--orange);
  color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: .5px; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.logo-sub { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; color: var(--ink-soft); }
.footer-logo .logo-sub { color: #9ca3af; }

.nav { display: flex; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all .18s; border: 1px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.nav-cta { padding: 9px 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff7f1 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 24px; }
.hero-eyebrow {
  display: inline-block; background: var(--orange-light); color: var(--orange-dark);
  font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.12; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 26px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 420px; aspect-ratio: 1/1; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 36px; max-width: 560px; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.category-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; transition: all .18s; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.category-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-emoji { font-size: 30px; }
.category-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.category-count { font-size: 12px; color: var(--ink-soft); }

/* ---------- Products ---------- */
.products-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.products-head .section-title { margin-bottom: 0; }
.products-tools { flex: 1; max-width: 360px; }
.search-input {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 15px; font-family: inherit; outline: none; transition: border .15s;
}
.search-input:focus { border-color: var(--orange); }

.category-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: all .15s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .18s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #f0c3a6; }
.product-img { position: relative; aspect-ratio: 1/1; background: #fafafa; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-cat { position: absolute; top: 12px; left: 12px; background: rgba(26,28,30,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.product-model { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.meta-tag { font-size: 11px; background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; color: var(--ink-soft); font-weight: 500; }
.product-foot { margin-top: auto; padding-top: 10px; }
.product-quote { width: 100%; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; background: var(--orange-light); color: var(--orange-dark); border: 1px solid transparent; transition: all .15s; }
.product-quote:hover { background: var(--orange); color: #fff; }

.no-results { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 16px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.fact-num { display: block; font-size: 30px; font-weight: 800; color: var(--orange); }
.fact span:last-child { font-size: 13px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; transition: all .18s; display: block;
}
.contact-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-icon { font-size: 34px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--ink-soft); word-break: break-all; }
.contact-person { color: var(--ink-soft); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 48px 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.footer-brand .logo-mark { margin-bottom: 6px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13px; color: #9ca3af; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #cbd5e1; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: right; font-size: 12px; color: #9ca3af; }
.footer-copy p + p { margin-top: 4px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,18,22,.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: #fff; border-radius: 18px; overflow: hidden;
  width: 100%; max-width: 960px; max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 60px rgba(16,24,40,.35);
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: #333; font-size: 24px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.modal-close:hover { background: #fff; }
.modal-media { background: #fafafa; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-img { aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: #fff; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .15s; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--orange); opacity: 1; }
.modal-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.modal-cat { display: inline-block; background: var(--orange-light); color: var(--orange-dark); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.modal-name { font-size: 24px; font-weight: 800; line-height: 1.25; }
.modal-model { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.modal-loading { background: var(--bg-alt); border: 1px solid var(--line); padding: 10px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); }
.modal-body h4 { margin-top: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td.sk { width: 42%; color: var(--ink-soft); font-weight: 500; }
.spec-table td.sv { font-weight: 500; }
.modal-cta { margin-top: 8px; }

@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; }
  .modal-media { padding: 20px; }
  .modal-body { padding: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 320px; }
  .about-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 4px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .footer-inner { flex-direction: column; }
  .footer-copy { text-align: left; }
}
