:root {
  --red: #ff2d2d;
  --ink: #050505;
  --cream: #f3efe6;
  --muted: #a39d93;
  --line: rgba(243, 239, 230, 0.14);
  --max: 1080px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2 {
  font-family: Anton, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 46px; width: auto; display: block; border-radius: 10px; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.7);
}
.nav-links a:hover { color: #fff; }
.nav-links { margin-left: auto; }
.cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(243, 239, 230, 0.92);
}
.cart-link svg { width: 26px; height: 26px; }
.cart-link span {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 99px;
}
.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem) 4rem;
}
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.page-head p { color: var(--muted); margin: 0.4rem 0 0; max-width: 42ch; }
.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}
.panel {
  background: #111;
  border: 1px solid var(--line);
  padding: 1rem;
}
.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; }
.line img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #e8e4db;
}
.line h2 { font-size: 1.15rem; line-height: 1.15; }
.line .price { font-weight: 800; }
.qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.qty button, .remove {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
}
.qty button { width: 28px; height: 28px; }
.qty span { min-width: 1.2rem; text-align: center; font-weight: 800; }
.remove {
  margin-left: 0.4rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.45rem 0;
  color: var(--muted);
}
.row.total { color: var(--cream); font-size: 1.15rem; font-weight: 800; margin-top: 0.8rem; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0.8rem 0 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--red);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.btn:hover { background: #c81018; }
.btn.ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  margin-top: 0.55rem;
}
.empty { color: var(--muted); padding: 2rem 0; }
.form { display: grid; gap: 0.75rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  background: #0b0b0b;
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 1rem;
}
.form .split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.confirm h1 { margin-bottom: 0.6rem; }
.confirm p { color: var(--muted); max-width: 46ch; }
.order-id { color: var(--red); font-weight: 800; letter-spacing: 0.08em; }
@media (max-width: 800px) {
  .layout, .form .split { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}
