:root {
  --bg: #0b1120;
  --bg-card: #111827;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  background: var(--bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  padding: 2px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.brand__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand__lat {
  color: #93c5fd;
  font-weight: 600;
}

.brand__sub {
  font-size: 12px;
  color: #94a3b8;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover {
  color: #fff;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn--lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  border-color: #60a5fa;
  color: #eff6ff;
}

.btn--outline:hover {
  background: rgba(96, 165, 250, 0.15);
}

.btn--secondary {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.btn--secondary:hover {
  background: #dbeafe;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, #1e293b 0%, #0b1120 70%);
  color: #fff;
  padding: 56px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.22;
  margin-bottom: 16px;
}

.accent {
  color: #60a5fa;
}

.hero__lead {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 24px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.stat strong {
  display: block;
  font-size: 18px;
  color: #fff;
}

.stat span {
  font-size: 12.5px;
  color: #94a3b8;
}

.hero__card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
}

.hero__card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #f8fafc;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: #cbd5e1;
}

.check-list li::before {
  content: "✓ ";
  color: #38bdf8;
  font-weight: 800;
}

.hero__card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
}

.hero__card-footer a {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip--active {
  background: var(--bg);
  color: #fff;
  border-color: var(--bg);
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.product-card__top {
  margin-bottom: 16px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card__stock {
  color: #15803d;
}

.product-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #0f172a;
}

.product-card__desc {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 12px;
}

.product-card__specs {
  list-style: none;
  font-size: 12.5px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.product-card__bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
}

.price-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* Info Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 22px;
}

.info-box h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 14px;
  color: #475569;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

.decl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.decl-table th,
.decl-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.decl-table th {
  background: #f8fafc;
  font-weight: 700;
}

code {
  background: #eff6ff;
  color: #1e3a8a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* Footer */
.footer {
  background: var(--bg);
  color: #cbd5e1;
  padding: 44px 0;
  font-size: 13.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr;
  gap: 28px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 10px;
}

.req-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer a {
  color: #60a5fa;
  text-decoration: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.modal__head {
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #64748b;
}

.modal__body {
  padding: 20px 22px;
}

.cart-list {
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 13.5px;
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-total {
  margin-top: 10px;
  font-weight: 800;
  text-align: right;
  font-size: 16px;
}

.order-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.order-form input,
.order-form select,
.order-form textarea {
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-note {
  font-size: 12px;
  color: #64748b;
}

.order-success {
  margin-top: 14px;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .hero__grid,
  .footer__grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}
