:root {
  --theme: #b4cccb;
  --ink: #222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #fff;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.45 "Open Sans", "Segoe UI", sans-serif;
}
a { color: inherit; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 20px;
}
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; }
.header__phone { margin-left: auto; text-decoration: none; font-weight: 600; }
.hero { padding: 36px 0 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: #3d6462;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; font-size: 36px; font-weight: 600; }
.lead, .stats { color: var(--muted); }
.toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
input, select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  font: inherit;
  background: #fff;
}
input { flex: 1; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f7f7;
}
#d-photo {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f4f7f7;
  border-radius: 12px;
  margin-bottom: 12px;
}
.card:hover { border-color: var(--theme); }
.card__sku { margin: 0; color: var(--muted); font-size: 13px; }
.card h3 { margin: 8px 0; font-size: 16px; font-weight: 600; flex: 1; }
.card__qty { margin: 0; font-weight: 600; }
.card__wh { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }
.manager { padding: 48px 0; }
.manager__box {
  background: #f6fbfb;
  border-radius: 16px;
  padding: 28px;
}
.manager a { color: #2f5553; }
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
dialog {
  border: 0;
  border-radius: 16px;
  width: min(520px, calc(100% - 24px));
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog form { position: relative; }
.close {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.meta, .qty { color: var(--muted); }
.qty { color: var(--ink); font-weight: 600; }
dialog ul { padding-left: 18px; }
.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--theme);
  color: #1d1d1d;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .header__row { flex-wrap: wrap; min-height: 0; padding: 12px 0; }
  .header__phone { margin-left: 0; }
  .toolbar { flex-direction: column; }
}
