:root {
  --red: rgb(220, 38, 38);
  --red-700: rgb(185, 28, 28);
  --red-800: rgb(153, 27, 27);
  --red-50: rgb(254, 242, 242);
  --ink: #0a0a0a;
  --ink-80: #1c1917;
  --ink-60: #44403c;
  --ink-40: #78716c;
  --ink-20: #a8a29e;
  --line: #e7e5e4;
  --line-2: #f0eeec;
  --bg: #ffffff;
  --bg-2: #fafaf9;
  --bg-3: #f5f5f4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-80);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- header ---------- */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.hdr-logo img { height: 26px; }
.hdr-nav { display: flex; align-items: center; gap: 32px; }
.hdr-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-80);
  letter-spacing: -0.005em;
  transition: color .15s;
}
.hdr-nav a:hover { color: var(--red); }
.hdr-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.005em;
  transition: background .15s, transform .15s;
}
.hdr-cta:hover { background: var(--red-700); }
@media (max-width: 900px) {
  .hdr-nav { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 900;
}
.hero h1 em {
  font-style: normal; color: var(--red);
}
.hero-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-60);
  margin: 28px 0 36px;
  max-width: 520px;
}
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-meta-label {
  font-size: 11.5px; font-weight: 700; color: var(--ink-40);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: "Archivo", sans-serif;
}
.hero-meta-value {
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 17px;
  color: var(--ink);
}
.hero-price-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hero-price {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-price .crc { color: var(--red); }
.hero-price-vat { color: var(--ink-40); font-size: 14px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); padding: 14.5px 26px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* hero image card */
.hero-img-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 0.72;
}
.hero-img-card img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.hero-img-badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--ink);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-img-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero-img-anno {
  position: absolute; bottom: 24px; right: 24px;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13px;
  max-width: 240px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.12);
}
.hero-img-anno strong {
  display: block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 13.5px; color: var(--ink); margin-bottom: 2px;
}
.hero-img-anno span { color: var(--ink-40); }

@media (max-width: 920px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-img-card { aspect-ratio: 0.75; max-width: 480px; margin: 0 auto; }
}

/* ---------- SECTIONS ---------- */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.sec-eyebrow {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--red); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.sec-eyebrow .num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-40);
  letter-spacing: 0.04em;
}
.sec-eyebrow .divider {
  width: 24px; height: 1px; background: var(--line); flex: 0 0 24px;
}
.sec-title {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 900;
  max-width: 760px;
}
.sec-lede {
  font-size: 17px;
  color: var(--ink-60);
  max-width: 360px;
}
@media (max-width: 800px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- FEATURES ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 36px;
  row-gap: 56px;
}
.feat {
  padding: 0;
  position: relative;
}
.feat-num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.feat-num::after {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--red);
  opacity: 0.5;
}
.feat h3 {
  font-size: 19px; font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
}
.feat p {
  font-size: 14.5px;
  color: var(--ink-40);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 540px) {
  .feat-grid { grid-template-columns: 1fr; row-gap: 36px; }
}

/* ---------- DETAIL split ---------- */
.detail-section { background: var(--ink); color: #fff; }
.detail-section h2 { color: #fff; }
.detail-section .sec-head { border-color: rgba(255,255,255,0.12); }
.detail-section .sec-eyebrow { color: #fca5a5; }
.detail-section .sec-eyebrow .num { color: rgba(255,255,255,0.5); }
.detail-section .sec-eyebrow .divider { background: rgba(255,255,255,0.2); }
.detail-section .sec-lede { color: rgba(255,255,255,0.65); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.detail-img {
  background: #fff;
  border-radius: 20px;
  aspect-ratio: 0.85;
  overflow: hidden;
  position: relative;
}
.detail-img img { width: 100%; height: 100%; object-fit: contain; }
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 64px 1fr 200px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.detail-row:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.detail-row-num {
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 13px;
  color: var(--red);
  letter-spacing: 0.05em;
}
.detail-row-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 18px;
  color: #fff;
  letter-spacing: -0.01em;
}
.detail-row-val {
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  text-align: right;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-row { grid-template-columns: 40px 1fr; }
  .detail-row-val { grid-column: 2; text-align: left; }
}

/* ---------- LOXONE products ---------- */
.lox-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.lox-card {
  background: var(--bg-2);
  border-radius: 24px;
  padding: 36px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.lox-card-main { background: #fff; }
.lox-card-img {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin: -16px -16px 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  min-height: 280px;
}
.lox-card-img img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.lox-card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Archivo", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8px;
}
.lox-card .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.lox-card h3 {
  font-size: 24px; line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.02em;
}
.lox-card p {
  font-size: 14.5px; color: var(--ink-60);
  margin: 0; max-width: 380px;
}
.lox-card-link {
  margin-top: 18px;
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 13.5px;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}
.lox-card-link:hover { color: var(--red-700); }
@media (max-width: 800px) {
  .lox-grid { grid-template-columns: 1fr; }
  .lox-card { min-height: 400px; }
}

/* ---------- SPECS ---------- */
.specs-wrap {
  background: var(--bg-2);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--line);
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.spec-row {
  display: flex; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  font-size: 15px;
}

.spec-row-v {
  color: var(--ink);
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.spec-row-k {
  color: var(--ink-40);
  font-weight: 500;
  flex-shrink: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .specs-wrap { padding: 28px; }
  .specs-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- ORDER ---------- */
.order-section { background: var(--bg-2); }
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.order-summary {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 36px;
  position: sticky; top: 100px;
}
.os-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}
.os-line {
  display: flex; justify-content: space-between; align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.os-line:first-of-type { border-top: 1px solid var(--line); }
.os-line-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.os-line-desc {
  font-size: 13px; color: var(--ink-40); margin-top: 2px;
}
.os-line-val {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.os-line-val small { display: block; font-size: 11px; color: var(--ink-40); font-weight: 600; text-align: right; }
.os-tot {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline;
}
.os-tot-l { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.os-tot-v { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; }
.os-tot-vat { font-size: 13px; color: var(--ink-40); margin-top: 4px; text-align: right; }

.order-form { display: flex; flex-direction: column; gap: 28px; }
.form-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.form-step h3 {
  font-size: 19px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.form-step h3 .stepnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 13px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
}
.form-step .step-desc {
  font-size: 13.5px; color: var(--ink-40); margin: 0 0 20px 40px;
}

/* Option cards (color, add-ons) */
.opts {
  display: grid;
  gap: 10px;
}
.opts-cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s;
  align-items: center;
  background: #fff;
}
.opt:hover { border-color: var(--ink-20); }
.opt.active { border-color: var(--red); background: var(--red-50); }
.opt-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-20);
  position: relative;
  flex: 0 0 18px;
  transition: all .15s;
}
.opt.active .opt-radio {
  border-color: var(--red);
}
.opt.active .opt-radio::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--red);
  border-radius: 50%;
}
.opt-swatch {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  flex: 0 0 24px;
}
.opt-text { flex: 1; }
.opt-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.opt-desc { font-size: 12.5px; color: var(--ink-40); margin-top: 1px; }
.opt-price {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.opt-price.free { color: #16a34a; }
.opt-badge {
  background: var(--red); color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Checkbox style add-on cards */
.opt-check {
  align-items: flex-start;
  padding: 18px;
}
.opt-check .opt-radio {
  border-radius: 5px;
  margin-top: 2px;
}
.opt-check.active .opt-radio::after {
  inset: 0;
  background: var(--red);
  border-radius: 4px;
}
.opt-check.active .opt-radio {
  background: var(--red);
}
.opt-check.active .opt-radio::after {
  content: "";
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2.5 7.5l3 3 6-6.5'/></svg>") center/14px no-repeat;
}

/* Form fields */
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.field input, .field textarea, .field select {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { min-height: 88px; resize: vertical; }
.field-err {
  color: var(--red);
  font-size: 12px;
  margin-top: 2px;
}

.qty-wrap { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty-btn {
  background: #fff; border: none; color: var(--ink);
  font-size: 18px; font-family: "Archivo", sans-serif;
  font-weight: 700;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: background .12s;
}
.qty-btn:hover { background: var(--bg-3); }
.qty-val {
  width: 56px; text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.submit-fine {
  font-size: 12.5px;
  color: var(--ink-40);
  max-width: 340px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 540px) {
  .fields { grid-template-columns: 1fr; }
  .opts-cols-2 { grid-template-columns: 1fr; }
}

/* ---------- SUCCESS ---------- */
.thanks {
  text-align: center;
  padding: 56px 28px;
}
.thanks-ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.thanks h3 { font-size: 32px; margin-bottom: 12px; letter-spacing: -0.02em; }
.thanks p { color: var(--ink-60); max-width: 440px; margin: 0 auto; }

/* ---------- FOOTER ---------- */
.site-ftr {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.ftr-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.ftr-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ftr-logo img { height: 28px; filter: brightness(0) invert(1); }
.ftr-tag { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 320px; line-height: 1.5; }
.ftr-col h4 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: "Archivo", sans-serif;
}
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr-col li a { font-size: 14.5px; color: rgba(255,255,255,0.65); transition: color .15s; }
.ftr-col li a:hover { color: #fff; }
.ftr-bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.ftr-bot-l { font-size: 13px; color: rgba(255,255,255,0.5); }
.ftr-bot-r { display: flex; gap: 24px; }
.ftr-bot-r a { font-size: 13px; color: rgba(255,255,255,0.5); }
.ftr-bot-r a:hover { color: #fff; }
@media (max-width: 800px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .ftr-top { grid-template-columns: 1fr; }
}

/* Marquee red rail (visual signature) */
.red-rail {
  background: var(--red);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rail-track {
  display: flex; gap: 40px;
  animation: rail 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.rail-track span { display: inline-flex; align-items: center; gap: 14px; }
.rail-track span::after { content: "●"; opacity: 0.5; font-size: 10px; margin-left: 26px; }
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
