:root {
  --bg: #080808;
  --panel: #111111;
  --panel-2: #151515;
  --panel-3: #1a1a1a;
  --line: rgba(184, 149, 95, 0.28);
  --line-strong: rgba(184, 149, 95, 0.52);
  --accent: #b8955f;
  --accent-soft: rgba(184, 149, 95, 0.14);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --muted-2: #858585;
  --danger: #ff5a5a;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 149, 95, 0.16), transparent 34%),
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.88)),
    url('../png/fonassortment.png') center top / 100% auto no-repeat,
    var(--bg);
  color: var(--text);
  padding: 28px 22px 48px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* age */

.age-screen {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-card {
  width: min(520px, 100%);
  padding: 38px 30px;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(12, 12, 12, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.age-badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.age-card h1 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.age-card p {
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.age-actions {
  display: grid;
  gap: 12px;
}

.confirm-button,
.deny-button {
  min-height: 56px;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.22s ease;
}

.confirm-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #d0ad73);
  color: #101010;
}

.deny-button {
  background: rgba(255, 90, 90, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 90, 90, 0.45);
}

.confirm-button:hover,
.deny-button:hover {
  transform: translateY(-2px);
}

/* layout */

.catalog-page {
  width: 100%;
}

.catalog-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.back-link,
.staff-link {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: #dedede;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(17, 17, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.22s ease;
  backdrop-filter: blur(14px);
}

.back-link:hover,
.staff-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(184, 149, 95, 0.12);
}

.back-link {
  margin-right: auto;
}

.catalog-hero {
  min-height: 260px;
  padding: clamp(26px, 5vw, 46px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.72)),
    linear-gradient(135deg, rgba(184, 149, 95, 0.18), transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: end;
  overflow: hidden;
  position: relative;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  top: -190px;
  border-radius: 50%;
  background: rgba(184, 149, 95, 0.13);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.content-label,
.modal-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 720px;
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.65;
}

.hero-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.62);
  border: 1px solid rgba(184, 149, 95, 0.36);
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
}

.hero-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.hero-card strong {
  font-size: 18px;
}

.catalog-tools {
  margin: 22px 0 16px;
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.search-box {
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.search-box i {
  color: var(--accent);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-clear {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-3);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.search-clear:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.quick-stats {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-stats span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-category-tabs {
  display: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel,
.catalog-content {
  border-radius: 28px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.filter-panel {
  padding: 18px;
  position: sticky;
  top: 18px;
}

.filter-block + .filter-block {
  margin-top: 20px;
}

.filter-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-button,
.category-tab,
.brand-strip button,
.reset-button {
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.22s ease;
}

.filter-button {
  min-height: 50px;
  padding: 0 13px;
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.filter-button span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-button i {
  width: 18px;
  color: var(--accent);
  text-align: center;
}

.filter-button em {
  flex: 0 0 auto;
  min-width: 30px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.filter-button.compact {
  min-height: 44px;
  font-size: 13px;
}

.filter-button.is-empty {
  opacity: 0.68;
}

.filter-button:hover,
.filter-button.active,
.category-tab:hover,
.category-tab.active,
.brand-strip button:hover,
.brand-strip button.active {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-button.active em,
.category-tab.active em {
  background: var(--accent);
  color: #111;
}

.catalog-content {
  min-height: 520px;
  padding: clamp(18px, 3vw, 26px);
}

.content-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.content-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1px;
}

.reset-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 800;
}

.reset-button:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

.brand-strip {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-strip button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
  min-height: 352px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.96), rgba(13, 13, 13, 0.98));
  border: 1px solid rgba(184, 149, 95, 0.22);
  display: flex;
  flex-direction: column;
  transition: 0.22s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.product-image-wrap {
  position: relative;
  height: 168px;
  border-radius: 18px;
  background: #232323;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.stock-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.stock-low {
  background: #ffce73;
}

.stock-ok {
  background: #9cffb1;
}

.stock-many {
  background: #7dd3ff;
}

.stock-none {
  background: #ff7b7b;
}

.product-body {
  padding: 13px 4px 10px;
  flex: 1 1 auto;
}

.product-tags {
  margin-bottom: 9px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-body h3 {
  min-height: 42px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.product-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-price {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.product-price strong {
  font-size: 17px;
}

.product-price span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  text-decoration: line-through;
}

.product-price.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reserve-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  background: var(--text);
  color: #111;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: 0.2s ease;
}

.reserve-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent), #d0ad73);
  transform: translateY(-1px);
}

.reserve-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty-state {
  min-height: 300px;
  border-radius: 24px;
  background: var(--panel-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
}

.empty-state i {
  color: var(--accent);
  font-size: 36px;
  margin-bottom: 14px;
}

.empty-state h3 {
  color: var(--text);
  font-size: 24px;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 430px;
  line-height: 1.55;
}

/* reserve modal */

.reserve-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
}

.reserve-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.reserve-modal__card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: min(9vh, 70px) auto 0;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62);
  animation: modalIn 0.24s ease;
}

.reserve-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: var(--panel-3);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}

.reserve-modal__close:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.reserve-modal__card h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin-bottom: 6px;
}

.reserve-product-name {
  color: var(--accent);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 22px;
}

.reserve-modal__card form {
  display: grid;
  gap: 12px;
}

.reserve-modal__card label {
  display: grid;
  gap: 7px;
}

.reserve-modal__card label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reserve-modal__card input,
.reserve-modal__card select,
.reserve-modal__card textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid rgba(184, 149, 95, 0.25);
  background: var(--panel-2);
  color: var(--text);
  outline: 0;
  transition: 0.2s ease;
}

.reserve-modal__card textarea {
  min-height: 92px;
  padding-top: 13px;
  resize: vertical;
}

.reserve-modal__card input:focus,
.reserve-modal__card select:focus,
.reserve-modal__card textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(184, 149, 95, 0.08);
}

.reserve-note {
  padding: 12px;
  border-radius: 15px;
  background: rgba(184, 149, 95, 0.1);
  border: 1px solid rgba(184, 149, 95, 0.24);
  color: #d4d4d4;
  font-size: 12px;
  line-height: 1.5;
}

.reserve-submit {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #d0ad73);
  color: #111;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s ease;
}

.reserve-submit:hover {
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f5f5;
  color: #111;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  animation: toastIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* adaptive */

@media (max-width: 980px) {
  body {
    padding: 22px 16px 40px;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    width: min(360px, 100%);
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    justify-content: flex-start;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    display: none;
  }

  .mobile-category-tabs {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .mobile-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .category-tab span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .category-tab i {
    color: var(--accent);
  }

  .category-tab em {
    min-width: 26px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(184, 149, 95, 0.18), transparent 44%),
      linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.9)),
      url('../png/fonassortment-mobile.jpg') center top / cover no-repeat,
      var(--bg);
  }

  .topbar {
    align-items: stretch;
  }

  .back-link,
  .staff-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .catalog-hero {
    padding: 24px;
    border-radius: 28px;
  }

  .hero-copy h1 {
    letter-spacing: -2px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 20px;
  }

  .catalog-tools {
    margin-top: 16px;
  }

  .search-box {
    min-height: 54px;
    border-radius: 18px;
  }

  .catalog-content {
    padding: 16px;
    border-radius: 24px;
  }

  .content-head {
    flex-direction: column;
    align-items: stretch;
  }

  .reset-button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    min-height: 300px;
    padding: 8px;
    border-radius: 18px;
  }

  .product-image-wrap {
    height: 118px;
    border-radius: 14px;
  }

  .stock-badge {
    left: 7px;
    bottom: 7px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }

  .product-tags span {
    font-size: 9px;
    padding: 4px 7px;
  }

  .product-body {
    padding: 10px 2px 8px;
  }

  .product-body h3 {
    min-height: 38px;
    font-size: 12px;
  }

  .product-body p,
  .product-price.muted {
    font-size: 10px;
  }

  .product-price strong {
    font-size: 13px;
  }

  .reserve-btn {
    min-height: 38px;
    border-radius: 13px;
    font-size: 11px;
  }

  .reserve-modal {
    padding: 14px;
  }

  .reserve-modal__card {
    padding: 22px;
    border-radius: 24px;
    margin-top: 18px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    height: 160px;
  }
}

.rsnt-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fix native select dropdown contrast */
select {
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #111111;
  color: #f5f5f5;
}

select option:checked {
  background-color: #b8955f;
  color: #080808;
}

/* legal updates */
.age-legal-text {
  margin-top: -14px;
  font-size: 13px !important;
  color: #bdbdbd !important;
}

.product-legal-note {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(184, 149, 95, 0.09);
  border: 1px solid rgba(184, 149, 95, 0.22);
  color: #d0d0d0;
  font-size: 12px;
  line-height: 1.45;
}

.consent-line {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px !important;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-line input {
  width: 18px !important;
  min-height: 18px !important;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-line span {
  color: #d4d4d4 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}

.consent-line a,
.catalog-legal-footer a,
.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.consent-line a:hover,
.catalog-legal-footer a:hover,
.legal-page a:hover {
  text-decoration: underline;
}

.catalog-legal-footer {
  width: min(1240px, 100%);
  margin: 34px auto 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(184, 149, 95, 0.22);
  color: #cfcfcf;
  display: grid;
  gap: 10px;
  text-align: center;
}

.catalog-legal-footer span {
  color: var(--accent);
  font-weight: 900;
}

.catalog-legal-footer p {
  font-size: 12px;
  line-height: 1.55;
}

.catalog-legal-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  font-weight: 700;
}

.legal-page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-document {
  padding: clamp(24px, 5vw, 42px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(10, 10, 10, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-bottom: 14px;
}

.legal-document h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 21px;
}

.legal-document p,
.legal-document li {
  color: #d2d2d2;
  line-height: 1.7;
  font-size: 14px;
}

.legal-document ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-warning {
  margin: 18px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 90, 90, 0.09);
  border: 1px solid rgba(255, 90, 90, 0.26);
  color: #ffd8d8 !important;
}

.legal-muted {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.product-colors {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.product-color {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-color span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--variant-color);
}

.product-color:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 149, 95, 0.7);
}

.product-color.active {
  border-color: #b8955f;
  box-shadow: 0 0 0 3px rgba(184, 149, 95, 0.22);
}

.selected-variant-label {
  margin-top: 6px;
  font-size: 12px;
  color: #cfcfcf;
}
