:root {
  color-scheme: light;
  --ink: #171a16;
  --muted: #51564d;
  --page: #f5f6f1;
  --line: #d9dcd2;
  --white: #fff;
  --dark: #111310;
  --dark-line: #30362c;
  --lime: #d3fb48;
  --mono: Consolas, "Liberation Mono", monospace;
  --display: "Arial Black", "Segoe UI", sans-serif;
  --frame: min(1280px, calc(100% - 96px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #47740a; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .guide :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
.wrap { width: var(--frame); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: var(--lime); color: var(--ink); }
.kicker { font: 700 .75rem/1.3 var(--mono); letter-spacing: .13em; }
.section-kicker { color: #445b18; }

.header { background: var(--dark); color: var(--white); border-bottom: 1px solid var(--dark-line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 10px; font: 900 1.4rem/1 var(--display); letter-spacing: -.06em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--dark); background: var(--lime); }
.brand-mark .icon { width: 27px; height: 27px; }
.brand-dot { margin-left: -9px; color: var(--lime); }
.nav, .header-actions { display: flex; align-items: center; gap: 30px; }
.nav a { color: #dddeda; font-size: .9rem; font-weight: 600; }
.nav a:hover, .footer-link:hover { color: var(--lime); }
.header-actions { justify-self: end; gap: 10px; }
.icon-btn, .cart-button { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
.header .icon-btn, .cart-button { border-color: #454c40; }
.header .icon-btn:hover, .cart-button:hover { border-color: var(--lime); }
.cart-button { display: inline-flex; gap: 9px; padding: 0 10px; font-size: .875rem; font-weight: 650; }
#cart-count { min-width: 22px; padding: 1px 4px; border-radius: 3px; background: var(--lime); color: var(--dark); font: 700 .78rem/20px var(--mono); text-align: center; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #111310; color: #fbfcf8; }
.hero-art { position: absolute; z-index: -2; inset: 0 max(0px, calc((100vw - 1348px) / 2)) 0 auto; width: min(78%, 940px); display: flex; justify-content: end; }
.hero-art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 94%, transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #111310 18%, #111310 32%, rgba(17, 19, 16, .88) 41%, transparent 63%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 530px; padding-block: 56px 64px; }
.hero-copy { max-width: 630px; }
.hero-kicker { color: var(--lime); display: flex; align-items: center; gap: 11px; }
.hero-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { margin-block: 20px 23px; font: 900 clamp(3.6rem, 6.45vw, 6.45rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.062em; }
.hero h1 span { color: var(--lime); }
.hero-intro { max-width: 400px; color: #d3d7cd; font-size: 1.05rem; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 15px; padding: 11px 17px; border: 1px solid transparent; border-radius: 5px; font-size: .91rem; font-weight: 750; text-align: center; }
.button-lime { color: var(--dark); background: var(--lime); }
.button-lime:hover { background: #e2ff83; }
.button-dark { color: var(--white); background: var(--dark); }
.button-dark:hover { background: #343b2d; }
.hero-link, .footer-link { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 650; }
.hero-link { color: #e3e6dc; min-height: 44px; }
.hero-link .icon, .footer-link .icon { width: 16px; height: 16px; }
.hero-link:hover { color: var(--lime); }
.hero-caption { position: absolute; bottom: 21px; right: 0; color: #e1e6d6; font: 700 .7rem/1 var(--mono); letter-spacing: .14em; }
.hero-caption span { color: var(--lime); }

.spec-strip { background: #1b1e19; color: #d4d8cc; border-top: 1px solid var(--dark-line); }
.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 0; list-style: none; }
.spec-list li { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 10px 12px; font-size: .9rem; }
.spec-list li + li { border-left: 1px solid #353c2f; }
.spec-list .icon { color: var(--lime); }
.spec-list strong { color: #f1f3ed; font-weight: 650; }

.catalog { padding-block: 62px 76px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.catalog h2, .guide h2 { margin-block: 7px 8px; font: 900 clamp(2.15rem, 4.2vw, 4rem)/1.08 var(--display); letter-spacing: -.062em; }
.catalog h2 span { color: #567a13; }
.section-copy { color: var(--muted); }
.demo-tag { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 700 .69rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.demo-tag span { width: 7px; height: 7px; border-radius: 50%; background: #608019; }
.catalog-controls, .results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.catalog-controls { padding-top: 18px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 40px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: transparent; font-size: .87rem; font-weight: 650; }
.filters button:hover { border-color: #777f6d; }
.filters button[aria-pressed="true"] { border-color: var(--dark); background: var(--dark); color: var(--white); }
.sort { position: relative; }
.sort select { appearance: none; min-height: 40px; min-width: 151px; padding: 5px 34px 5px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); cursor: pointer; font-size: .86rem; }
.sort .icon { position: absolute; pointer-events: none; right: 9px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; }
.results-bar { margin-block: 13px; }
.result-count { color: var(--muted); font: 700 .74rem/1.3 var(--mono); }
.search { position: relative; width: min(100%, 253px); }
.search .icon { position: absolute; pointer-events: none; top: 10px; left: 9px; width: 18px; height: 18px; color: var(--muted); }
.search input { display: block; width: 100%; min-height: 38px; padding: 5px 10px 5px 35px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: .86rem; }
.search input::placeholder { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.product-media { position: relative; background: #e0e1dd; border-radius: 6px 6px 0 0; overflow: hidden; aspect-ratio: 1.24; }
.product-media img { height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 3px; background: var(--lime); color: var(--dark); font: 700 .67rem/1.2 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }
.product-type { color: #485b28; font: 700 .69rem/1.3 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.product h3 { margin-block: 5px 3px; font-size: 1.04rem; line-height: 1.25; }
.product-name { padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 750; }
.product-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-spec { color: var(--muted); font-size: .83rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; align-self: stretch; margin-top: auto; padding-top: 15px; }
.price { font-size: 1.2rem; line-height: 1.3; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.add-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--page); }
.add-button:hover { border-color: #718e2b; background: var(--lime); }
.empty { padding: 38px 18px; border: 1px dashed #aeb5a3; border-radius: 6px; text-align: center; }
.empty p { color: var(--muted); margin-block: 5px 14px; }

.guide { background: #20241c; color: #f9faf5; }
.guide-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 68px; padding-block: 68px; }
.guide h2 { max-width: 480px; font-size: clamp(2.15rem, 4vw, 3.45rem); }
.guide h2 span { color: var(--lime); }
.guide p:not(.kicker) { color: #d0d5c7; }
.guide-list { margin: 0; padding: 0; border-top: 1px solid #484e40; list-style: none; }
.guide-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #484e40; }
.guide-list li > span { margin-top: 4px; color: var(--lime); font: 700 .8rem/1.3 var(--mono); }
.guide-list h3 { font-size: 1rem; margin-bottom: 3px; }
.guide-list p { font-size: .88rem; }
.footer { background: var(--dark); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 90px; padding-block: 16px; }
.footer p { color: #c2c8b9; font-size: .84rem; }

.dialog { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--page); }
.dialog::backdrop { background: #0d110dd4; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dialog-top h2, .detail-grid h2 { font-size: 1.55rem; line-height: 1.18; letter-spacing: -.04em; }
.dialog .icon-btn:hover { background: #e6e9df; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 17px; }
.detail-grid img { aspect-ratio: 1.2; object-fit: contain; background: #e0e1dd; border-radius: 6px; }
.detail-grid h2 { margin-block: 4px 8px; }
.detail-grid p:not(.product-type, .price), .cart-note { color: var(--muted); font-size: .88rem; }
.detail-spec { margin: 12px 0; padding-left: 19px; font-size: .86rem; }
.detail-grid .button { margin-top: 10px; }
.detail-feedback:not(:empty) { margin-top: 8px; }
.cart-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 56px; border-radius: 4px; object-fit: contain; background: #e8e9e5; }
.cart-item h3 { font-size: .92rem; }
.cart-item p { color: var(--muted); font-size: .82rem; }
.quantity { display: flex; align-items: center; gap: 5px; font: 700 .82rem/1 var(--mono); }
.quantity .icon-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
.quantity .icon { width: 16px; height: 16px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-block: 15px 6px; }
.checkout-button { width: 100%; margin-top: 14px; }
.cart-message { border: 1px solid var(--line); padding: 17px; border-radius: 6px; }
.cart-message h3 { margin-bottom: 3px; }
.toast { position: fixed; z-index: 4; bottom: 18px; right: 18px; max-width: calc(100% - 36px); border-radius: 5px; color: var(--white); background: var(--dark); font-size: .9rem; pointer-events: none; }
.toast:not(:empty) { border: 1px solid #596443; padding: 10px 14px; }

@media (max-width: 1050px) {
  :root { --frame: calc(100% - 56px); }
  .hero-inner { min-height: 488px; }
  .hero-art { width: 82%; }
  .guide-inner { gap: 36px; }
}

@media (max-width: 820px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 443px; }
  .spec-list li { font-size: .82rem; }
  .nav { gap: 17px; }
}

@media (max-width: 620px) {
  :root { --frame: calc(100% - 32px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: 8px; }
  .nav { display: none; }
  .header-actions { gap: 6px; }
  .hero-art { inset: auto 0 0; width: 100%; height: 310px; justify-content: center; }
  .hero-art img { object-position: center; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 95%, transparent); }
  .hero::after { background: linear-gradient(180deg, #111310 48%, rgba(17, 19, 16, .9) 52%, transparent 68%); }
  .hero-inner { align-items: flex-start; min-height: 612px; padding-block: 37px 260px; }
  .hero h1 { font-size: clamp(2.9rem, 10.2vw, 4.2rem); margin-block: 16px; }
  .hero-intro { font-size: .94rem; }
  .hero-actions { gap: 4px 16px; margin-top: 22px; }
  .hero-caption { bottom: 15px; }
  .spec-list { grid-template-columns: 1fr; padding-block: 4px; }
  .spec-list li { justify-content: flex-start; min-height: 37px; padding: 6px 0; gap: 9px; }
  .spec-list li + li { border-left: 0; border-top: 1px solid #353c2f; }
  .spec-list .icon { width: 17px; height: 17px; }
  .catalog { padding-block: 38px 47px; }
  .catalog-heading { flex-direction: column; align-items: flex-start; gap: 11px; margin-bottom: 17px; }
  .catalog-controls { padding-top: 12px; }
  .products { gap: 9px; }
  .product-body { padding: 10px; }
  .product-type { font-size: .61rem; }
  .product h3 { font-size: .91rem; }
  .product-spec { font-size: .73rem; }
  .price { font-size: 1rem; }
  .add-button { width: 36px; height: 36px; }
  .guide-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 42px; }
  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .cart-label { display: none; }
  .hero-inner { min-height: 641px; }
  .results-bar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .dialog { padding: 13px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid img { max-height: 160px; }
  .cart-item { grid-template-columns: 48px 1fr auto; gap: 6px; }
  .cart-item img { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
