:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  min-height: 88px;
  padding: 18px clamp(20px, 6vw, 96px);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #e6e6e6;
  letter-spacing: .08em;
}

.site-header .brand {
  display: grid;
  place-items: center;
  width: 72px;
  height: 50px;
  color: white;
  background: #183784;
  border-radius: 7px;
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
}

.site-header .text-button { margin-left: auto; background: transparent; color: #111; border: 0; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; }
.panel { width: min(560px, 100%); margin: 0 auto; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1; letter-spacing: .02em; margin: 0 0 24px; }
h2 { margin: 0; }
form { display: grid; gap: 12px; margin-top: 32px; }
label { font-size: 14px; font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid #777;
  padding: 16px;
  background: #fff;
}
button {
  min-height: 52px;
  border: 1px solid #111;
  padding: 12px 22px;
  color: #fff;
  background: #111;
}
button.secondary { color: #111; background: #fff; }
button:disabled { cursor: not-allowed; opacity: .5; }
.message { min-height: 24px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.product-card { border: 1px solid #ddd; padding: 18px; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f6f6; }
.product-card h2 { font-size: 20px; margin: 16px 0 8px; }
.product-card p { margin: 6px 0; }
.variant-row { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: end; margin-top: 16px; }
.variant-row input { padding: 10px; }
dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; border: 1px solid #111; padding: 28px; }
dialog::backdrop { background: rgb(0 0 0 / .48); }
.request-dialog-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 24px; }
.request-dialog-header button { color: #111; background: transparent; border: 0; font-size: 32px; }
.request-line { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ddd; }
.fine-print { color: #555; font-size: 13px; }

@media (max-width: 640px) {
  .site-header { min-height: 72px; padding: 12px 20px; }
  .site-header .brand { width: 58px; height: 42px; font-size: 24px; }
  main { padding-top: 40px; }
  .catalog-heading { display: grid; }
  .catalog-heading button { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
}

