:root {
  color-scheme: dark;
  --page: #0d100f;
  --panel: #141918;
  --raised: #1a211e;
  --ink: #f2f6ed;
  --muted: #aebbb0;
  --line: #3b473e;
  --accent: #c9ff53;
  --accent-hover: #deff98;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1352px, calc(100% - 96px)); margin-inline: auto; }
.symbols { position: absolute; height: 0; width: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-banner { padding: 7px 15px; text-align: center; color: #d6dfce; background: #1d281d; font-size: .8125rem; line-height: 1.3; }
.site-header { border-bottom: 1px solid #262b27; }
.header { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { border-radius: 10px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.61rem; font-weight: 800; line-height: .95; letter-spacing: -.055em; }
.brand small { font-size: .64rem; letter-spacing: .15em; margin-top: 6px; color: var(--muted); font-weight: 650; }
nav { display: flex; align-items: center; gap: clamp(22px, 5vw, 66px); }
nav a { font-size: .9375rem; font-weight: 650; padding-block: 12px; color: #e3e7df; }
nav a:hover, .quote-button:hover { color: var(--accent-hover); }
.quote-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; min-height: 46px; padding: 7px 12px; font-weight: 650; }
.count { background: var(--accent); color: var(--page); border-radius: 20px; display: grid; place-items: center; padding: 2px 6px; min-width: 23px; min-height: 23px; font-size: .8125rem; font-weight: 800; }
.catalog { scroll-margin-top: 18px; margin-bottom: 64px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
h2 { font-size: clamp(1.75rem, 3.15vw, 2.65rem); letter-spacing: -.05em; line-height: 1.08; margin-bottom: 0; }
.search { display: flex; align-items: center; gap: 10px; width: min(370px, 100%); min-height: 48px; padding: 0 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search:focus-within { border-color: var(--accent-hover); }
.search input { width: 100%; min-width: 0; padding-block: 12px; color: var(--ink); border: 0; background: transparent; outline: none; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.categories { display: flex; flex-wrap: wrap; gap: 9px; }
.category { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 8px 13px; font-size: .875rem; font-weight: 650; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.category .icon { width: 17px; height: 17px; }
.category:hover { border-color: var(--accent-hover); }
.category[aria-pressed="true"] { background: #283318; border-color: #849f47; color: #eeffd7; }
.results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 12px; color: var(--muted); font-size: .875rem; }
.results p { margin: 0; }
.sort { position: relative; }
.sort::after { content: ""; position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; color: var(--ink); padding: 9px 30px 9px 10px; min-height: 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.product-visual { width: 100%; height: clamp(120px, 16vw, 226px); display: block; background: #e3e5e4; object-fit: cover; }
.product-visual.placeholder { display: grid; place-items: center; color: #262a27; }
.product-body { display: grid; flex: 1; gap: 8px; padding: 15px; }
.product-body h3 { margin: 0; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.02em; }
.product-body p { margin: 0; }
.product-category { color: #c2eb81; font-size: .8125rem; }
.product-meta { color: var(--muted); font-size: .875rem; }
.product-add { justify-self: start; align-self: end; margin-top: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; border: 1px solid #556b38; background: #25301b; color: #e0f8b9; min-height: 44px; padding: 8px 12px; font-size: .875rem; font-weight: 700; }
.product-add:hover { background: #3c4b24; }
.product-add .icon { width: 17px; height: 17px; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 10px; padding: 24px; color: var(--muted); margin: 0; }
footer { border-top: 1px solid #2b312c; padding: 23px 0; color: var(--muted); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer .brand { color: var(--ink); }
.footer p { margin: 0; font-size: .875rem; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; max-width: min(100%, 465px); width: 100%; max-height: 100%; height: 100%; padding: 22px; color: var(--ink); background: var(--panel); border: 0; border-left: 1px solid var(--line); }
dialog::backdrop { background: #080a08bb; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dialog-header h2 { font-size: 2rem; }
.dialog-header p, .dialog-actions p { color: var(--muted); margin: 8px 0 0; line-height: 1.4; }
.dialog-actions p { font-size: .875rem; }
.quote-items, .dialog-actions { margin-top: 22px; }
.quote-row { border-top: 1px solid var(--line); display: grid; gap: 10px; padding: 14px 0; }
.quote-row p { color: var(--muted); font-size: .875rem; margin: 5px 0 0; }
.quantity { display: flex; align-items: center; gap: 9px; font-size: .875rem; flex-wrap: wrap; }
.quantity input { width: 78px; min-height: 44px; background: var(--page); border: 1px solid var(--line); padding: 6px 9px; border-radius: 8px; }
.quantity button { margin-left: auto; min-height: 44px; background: transparent; color: #d7eeaa; border: 0; padding-inline: 8px; }
.quantity button:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 4; bottom: 18px; right: 18px; width: max-content; max-width: calc(100% - 36px); pointer-events: none; }
.toast:not(:empty) { border: 1px solid #617546; border-radius: 9px; padding: 12px 14px; background: #26331f; color: #e8ffd6; box-shadow: 0 10px 30px #0006; }
@media (max-width: 900px) { .wrap { width: calc(100% - 48px); } }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header { display: grid; grid-template-columns: 1fr auto; padding: 12px 0 4px; gap: 5px 14px; }
  .header nav { grid-area: 2 / 1 / 3 / -1; gap: 22px; }
  .catalog-header { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { padding: 11px; }
  .product-visual { height: clamp(115px, 30vw, 200px); }
  .product-add { padding-inline: 8px; }
}
@media (max-width: 360px) { .quote-button { gap: 5px; padding-inline: 7px; } .quote-button .icon { display: none; } .footer { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
