:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --line: #2b2b2b;
  --accent: #f4a11c;
  --accent-2: #ffbf47;
  --white-panel: #ffffff;
  --white-text: #171717;
  --shadow: 0 18px 40px rgba(0,0,0,.28);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #050505 0%, #0c0c0c 40%, #111 100%);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-light {
  background: #f5f5f2;
  color: var(--white-text);
}
.section-light .section-title,
.section-light .section-intro,
.section-light p,
.section-light h2,
.section-light h3,
.section-light label span,
.section-light .section-kicker,
.section-light .detail-card,
.section-light .info-card,
.section-light .empty-state,
.section-light .summary-card,
.section-light .cart-item,
.section-light .product-card,
.section-light .filters,
.section-light .contact-grid {
  color: var(--white-text);
}
.section-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 800;
}
.section-title {
  margin: .6rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.section-intro {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}
.accent { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  background: rgba(6,6,6,.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 86px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 14px;
}
.brand-copy strong { display: block; font-size: 1rem; }
.brand-copy span { color: var(--muted); font-size: .9rem; }
.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.nav a {
  color: #d7d7d7;
  font-weight: 600;
  position: relative;
}
.nav a:hover,
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -.45rem;
  height: 2px;
  background: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cart-pill {
  padding: .72rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: .95rem 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #141414;
  box-shadow: 0 12px 24px rgba(244,161,28,.18);
}
.button-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,.14);
}
.section-light .button-secondary { border-color: #d3d3d3; }
.full-width { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(244,161,28,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.hero-logo-wrap {
  background: radial-gradient(circle at center, rgba(255,255,255,.14), rgba(0,0,0,.2) 48%, rgba(0,0,0,.05) 100%);
  border-radius: 24px;
  padding: 1rem;
}
.hero-logo-wrap img {
  width: min(100%, 520px);
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.hero-points li,
.detail-card,
.info-card,
.filters,
.summary-card,
.cart-item,
.empty-state,
.product-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-points li { padding: 1rem 1rem; }
.stat-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-card { padding: 1.25rem; }
.stat-card strong { display: block; font-size: 1.8rem; }
.stat-card span { color: var(--muted); }
.success-banner {
  margin-top: 1rem;
  background: rgba(106, 194, 104, .16);
  border: 1px solid rgba(106,194,104,.35);
  color: #d9ffd3;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.value-grid,
.info-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.detail-card,
.info-card,
.contact-card { padding: 1.35rem; }
.detail-card h3,
.info-card h3,
.contact-card h3 { margin-top: 0; }
.section-light .detail-card,
.section-light .info-card,
.section-light .contact-card,
.section-light .summary-card,
.section-light .cart-item,
.section-light .product-card,
.section-light .filters,
.section-light .empty-state,
.section-light .checkout-form {
  background: #fff;
  border-color: #e7e4df;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.product-card { overflow: hidden; }
.product-media {
  background: linear-gradient(180deg, rgba(244,161,28,.10), rgba(0,0,0,.03));
  aspect-ratio: 1 / .78;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.product-media img {
  max-height: 210px;
  width: 100%;
  object-fit: contain;
}
.product-body { padding: 1.1rem; }
.product-meta-row,
.product-meta-list,
.product-actions,
.summary-line,
.cart-mini-specs,
.price-row,
.contact-lines {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(244,161,28,.14);
  color: var(--accent);
  padding: .38rem .7rem;
  font-size: .76rem;
  font-weight: 800;
}
.product-sku,
.product-meta-list,
.product-machine,
.summary-note,
.footer-copy,
.footer-links a,
.breadcrumbs,
.section-light .section-intro,
.section-light .summary-note {
  color: #808080;
}
.product-card h3 { margin: .8rem 0 .4rem; font-size: 1.08rem; }
.product-machine.large { font-size: 1.05rem; }
.product-actions { margin-top: 1rem; }

.filters {
  padding: 1rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: .9rem;
}
.filters label,
.checkout-form label { display: grid; gap: .4rem; font-weight: 700; }
.filters input,
.filters select,
.checkout-form input,
.checkout-form textarea {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  min-height: 48px;
  padding: .85rem .95rem;
  background: #fff;
  color: #111;
}
.breadcrumbs { margin-bottom: 1rem; font-weight: 600; }

.product-detail-layout,
.cart-layout,
.checkout-layout,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.product-detail-image-wrap,
.checkout-form { padding: 1.25rem; border-radius: var(--radius); background: #fff; }
.product-detail-copy { padding: .3rem 0; }
.product-detail-copy h1 { margin: .85rem 0 .35rem; font-size: clamp(2rem, 4vw, 3rem); color: #141414; }
.section-light .product-detail-copy p,
.section-light .product-detail-copy li,
.section-light .product-detail-copy h3,
.section-light .product-detail-copy strong,
.section-light .product-detail-copy span,
.section-light .product-detail-copy div,
.section-light .product-detail-copy h1 { color: #171717; }
.product-detail-image {
  width: 100%;
  background: linear-gradient(180deg, rgba(244,161,28,.08), rgba(0,0,0,.02));
  border-radius: 18px;
  padding: 1rem;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0 1.2rem;
}
.spec-grid div {
  background: #f5f2ea;
  border-radius: 14px;
  padding: .9rem;
}
.spec-grid span { display: block; color: #777; font-size: .8rem; }
.spec-grid strong { display: block; margin-top: .2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.4rem 0; }
.detail-block { margin-top: 1.4rem; }
.detail-block ul { margin: .6rem 0 0; padding-left: 1.1rem; }

.cart-list,
.checkout-form { display: grid; gap: 1rem; }
.cart-item {
  padding: 1rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.cart-item img {
  width: 140px;
  aspect-ratio: 1 / .8;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(244,161,28,.08), rgba(0,0,0,.02));
  border-radius: 14px;
  padding: .75rem;
}
.cart-item-controls {
  display: grid;
  gap: .7rem;
  justify-items: end;
}
.cart-item-controls input {
  width: 90px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d8d8d8;
  padding: .7rem;
}
.text-button {
  background: none;
  border: none;
  color: #b64e4e;
  font-weight: 700;
  cursor: pointer;
}
.summary-card { padding: 1.25rem; height: fit-content; }
.summary-card h3 { margin-top: 0; }
.summary-line { padding: .7rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.summary-line.total { font-size: 1.05rem; font-weight: 800; }
.cart-empty { text-align: center; padding: 2.2rem; }

.section-heading h2 { margin-bottom: .25rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.section-light textarea { min-height: 140px; resize: vertical; }
.note-panel {
  background: #fff7e8;
  color: #5e4714;
  border: 1px solid #f0d49d;
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.site-footer {
  background: #090909;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.4rem 0;
}
.footer-grid { align-items: start; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.footer-links { display: grid; gap: .5rem; justify-items: start; }
.footer-copy { margin-top: .8rem; }
.center-copy { text-align: center; }
.empty-state { padding: 2rem; }
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: .95rem 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid,
  .product-detail-layout,
  .cart-layout,
  .checkout-layout,
  .about-grid,
  .footer-grid,
  .value-grid,
  .info-grid,
  .contact-grid,
  .product-grid,
  .stat-grid,
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: .9rem 0;
  }
  .nav { justify-content: center; }
}

@media (max-width: 720px) {
  .hero-grid,
  .product-detail-layout,
  .cart-layout,
  .checkout-layout,
  .about-grid,
  .footer-grid,
  .value-grid,
  .info-grid,
  .contact-grid,
  .product-grid,
  .stat-grid,
  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
  .cart-item-controls { justify-items: stretch; }
  .brand { flex-direction: column; text-align: center; }
  .brand-copy span { display: none; }
  .header-actions { width: 100%; justify-content: center; }
}
