:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.price-page { min-height: 100vh; }

.price-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.price-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.price-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.price-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.price-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
}

.price-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.price-updated {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.price-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.price-sidebar {
  position: sticky;
  top: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.price-sidebar-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-nav {
  display: grid;
  gap: 8px;
}

.price-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}

.price-nav-item:hover {
  background: #f9fafb;
  border-color: var(--line);
}

.price-nav-item.is-active {
  background: var(--accent-soft);
  border-color: #c7d2fe;
}

.price-nav-title {
  font-weight: 600;
}

.price-nav-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.price-sidebar-label--sub {
  margin-top: 20px;
}

.price-subnav {
  display: grid;
  gap: 4px;
  max-height: 360px;
  overflow: auto;
}

.price-subnav-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.price-subnav-item:hover {
  background: #f9fafb;
  color: var(--text);
}

.price-section + .price-section {
  border-top: 8px solid var(--bg);
}

.price-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.price-section-title {
  margin: 0;
  font-size: 18px;
}

.price-section-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.price-table--compact th,
.price-table--compact td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.is-image {
  width: 72px;
}

.price-product-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.price-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.price-group-head {
  padding: 24px 24px 0;
}

.price-group-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

.price-group-desc {
  margin: 8px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.price-table-wrap {
  overflow: auto;
  padding: 16px 24px 24px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.price-table tbody tr:hover {
  background: #fafafa;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

.is-money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.price-currency {
  margin-left: 4px;
  font-weight: 600;
  color: var(--muted);
}

.price-subnav-item--nested {
  padding-left: 18px;
  font-size: 13px;
}

.price-mount-subsection {
  border-top: 1px solid var(--line);
}

.price-mount-subsection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  cursor: pointer;
  list-style: none;
  background: #fafafa;
  font-weight: 600;
}

.price-mount-subsection-summary::-webkit-details-marker {
  display: none;
}

.price-mount-subsection-summary::before {
  content: "▸";
  margin-right: 10px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.price-mount-subsection[open] > .price-mount-subsection-summary::before {
  transform: rotate(90deg);
}

.price-mount-subsection-title {
  flex: 1;
}

.price-mount-subsection .price-table-wrap {
  padding-top: 0;
}

.price-empty,
.price-empty-block {
  padding: 32px 24px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .price-layout {
    grid-template-columns: 1fr;
  }

  .price-sidebar {
    position: static;
  }

  .price-nav {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .price-header-inner {
    flex-direction: column;
  }

  .price-updated {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .price-layout,
  .price-header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .price-nav {
    grid-template-columns: 1fr;
  }
}
