:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --text: #181a2a;
  --muted: #5e6278;
  --primary: #5f5af7;
  --primary-dark: #4e4ac7;
  --accent: #1eb8a8;
  --border: #e8eaf6;
  --shadow: 0 12px 30px rgba(36, 44, 90, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(125, 105, 255, 0.16) 0%, rgba(125, 105, 255, 0) 34%),
    radial-gradient(circle at 88% 14%, rgba(30, 184, 168, 0.14) 0%, rgba(30, 184, 168, 0) 36%),
    linear-gradient(180deg, #f8f9ff 0%, #f5f7ff 42%, #f2f5ff 100%);
  color: var(--text);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.full {
  width: 100%;
}

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.1;
  margin: 8px 0 14px;
}

h1 span {
  color: var(--primary);
}

.lead {
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.products-section,
.contact-section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p,
.muted {
  color: var(--muted);
}

.filters {
  display: block;
  margin-bottom: 20px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 12px;
}

.sector-select-wrap {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.sector-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #43496f;
}

.sector-select-shell {
  position: relative;
}

.sector-select-shell::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #585e8a;
  pointer-events: none;
}

.sector-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  border: 1px solid #d5daf2;
  border-radius: 12px;
  padding: 11px 42px 11px 12px;
  font-weight: 700;
  color: #2c3150;
  cursor: pointer;
}

.sector-select:focus {
  outline: 2px solid #cbc9ff;
  outline-offset: 1px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: #ecebff;
  border-color: #c6c2ff;
  color: #3e3aaf;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.48);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  border: 1px solid #e7e9f7;
  background: linear-gradient(180deg, #f8f9ff 0%, #eef1ff 100%);
  padding: 8px;
}

.product-tag {
  font-size: 0.8rem;
  color: #3f4475;
  background: #eef1ff;
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

.product-title {
  margin: 0;
}

.price {
  font-weight: 800;
}

label {
  font-weight: 600;
  color: #343857;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8dcf0;
  border-radius: 11px;
  padding: 10px;
  font: inherit;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stack {
  display: grid;
  gap: 9px;
}

.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 95vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 70;
  transition: right 0.24s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.drawer.open {
  right: 0;
}

.drawer-header,
.drawer-footer {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.drawer-body {
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.qty {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 30, 0.45);
  z-index: 60;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.modal-content {
  width: min(520px, 92vw);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}