:root {
  color-scheme: dark;
  --ink: #111119;
  --panel: #191922;
  --slate: #21252e;
  --text: #f7f3ec;
  --muted: #c1bdbb;
  --gold: #e1bb7e;
  --bright: #f3da9a;
  --line: #3d3740;
  --wrap: 1200px;
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--ink); color: var(--text); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 4px; }
::selection { background: var(--bright); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; color: var(--ink); background: var(--bright); }
.header { position: sticky; top: 0; z-index: 3; background: #111119f5; border-bottom: 1px solid var(--line); }
.head-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .95rem; font-weight: 780; letter-spacing: .055em; }
.brand img { border-radius: 50%; }
.brand-accent { color: var(--gold); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .94rem; }
nav a:hover, .footer a:hover { color: var(--bright); }
.nav-order { border: 1px solid var(--line); padding: 0 16px; border-radius: 6px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 78px); align-items: center; padding-block: 68px 74px; }
.eyebrow { color: var(--gold); font-size: .78rem; letter-spacing: .15em; font-weight: 750; text-transform: uppercase; }
h1 { margin: 17px 0 23px; font: 600 clamp(3rem, 5.8vw, 5.65rem)/.98 Georgia, 'Times New Roman', serif; letter-spacing: -.062em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-lead { max-width: 35ch; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 17px; min-height: 47px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: transparent; text-align: center; font-weight: 720; line-height: 1.25; }
.button.primary, .button--primary { color: #171219; background: var(--gold); border-color: var(--gold); }
.button.primary:hover, .button--primary:hover { background: var(--bright); border-color: var(--bright); }
.button.secondary:hover, .button:not(.primary):not(.button--primary):hover { color: var(--bright); border-color: var(--gold); }
.hero-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 21px; font-size: .88rem; }
.hero-hint span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-visual { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #17151b; }
.hero-photo { aspect-ratio: 1.34; overflow: hidden; background: #211914; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 14px 16px; color: var(--muted); font-size: .84rem; }
.caption-code { color: var(--gold); letter-spacing: .1em; font-size: .75rem; align-self: center; }

.catalog-section { padding: 59px 0 57px; border-block: 1px solid var(--line); background: #17171f; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 27px; }
h2 { margin: 8px 0 0; font: 600 clamp(2.25rem, 4.15vw, 3.65rem)/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.section-head > p { color: var(--muted); max-width: 41ch; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.catalog-tools p { color: var(--muted); font-size: .92rem; margin-left: auto; }
.filter select { min-height: 48px; max-width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; flex: 0 1 430px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); }
.search svg { fill: none; stroke: var(--gold); stroke-width: 1.75; flex-shrink: 0; }
.search input { min-height: 46px; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--text); }
.search:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.product-card:hover { border-color: #735c4c; }
.product-image { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4/5; overflow: hidden; background: #202029; color: var(--muted); }
.product-image:focus-visible { outline-offset: -4px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-meta { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px; }
.product-card h3 { font-size: 1.03rem; line-height: 1.28; overflow-wrap: anywhere; }
.product-note { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.product-specs { color: var(--muted); font-size: .87rem; }
.product-availability { font-size: .8rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.product-meta .product-actions { margin-top: auto; padding-top: 6px; }
.product-meta .button { flex: 1 1 90px; padding-inline: 5px; font-size: .87rem; }
.catalog-empty { padding: 25px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.more-row { margin-top: 24px; display: flex; justify-content: center; }
.more-row:has(button[hidden]) { display: none; }

.custom-section { padding-top: 59px; }
.custom-panel { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 34px; padding: clamp(24px, 5vw, 61px); background: linear-gradient(115deg, #1c1c26 47%, #30261e); border: 1px solid var(--line); border-radius: 9px; }
.custom-panel p:not(.eyebrow) { color: var(--muted); margin: 15px 0 21px; max-width: 53ch; }
.custom-detail { max-width: 170px; justify-self: center; }
.custom-detail svg { width: 100%; stroke: var(--gold); stroke-width: 1.5; }
.custom-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.custom-shop-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--gold); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.custom-shop-link:hover { color: var(--bright); }
.order-section { padding-block: 57px 66px; }
.order-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 25px 0 0; }
.order-steps li { border-top: 1px solid var(--line); padding: 17px 0 0; }
.order-steps span { color: var(--gold); letter-spacing: .13em; font-size: .83rem; }
.order-steps h3 { margin: 6px 0; font-size: 1.1rem; }
.order-steps p, .footer { color: var(--muted); }
.footer { border-top: 1px solid var(--line); font-size: .88rem; }
.footer-inner { min-height: 81px; }
.footer .brand { color: var(--text); }

.shop-dialog { width: min(740px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: clamp(16px, 4vw, 30px); border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--panel); overflow: auto; }
.shop-dialog::backdrop { background: #08080bc9; }
.shop-dialog img { border-radius: 5px; }
.shop-dialog h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
.shop-dialog input, .shop-dialog textarea, .shop-dialog select { max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); color: var(--text); }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.dialog-title { overflow-wrap: anywhere; }
.dialog-close { width: 44px; height: 44px; flex-shrink: 0; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 1.65rem; line-height: 1; }
.dialog-close:hover { border-color: var(--gold); }
.product-dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-details > * + * { margin-top: 9px; }
.product-spec-list { padding-left: 22px; }
.gallery-main { display: grid; place-items: center; aspect-ratio: 4/5; background: var(--ink); border-radius: 6px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 55px)); gap: 7px; margin-top: 9px; }
.gallery-thumb { height: 58px; overflow: hidden; padding: 2px; border-radius: 5px; border: 1px solid var(--line); background: var(--ink); color: var(--text); }
.gallery-thumb[aria-pressed='true'] { border: 2px solid var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; min-height: 100%; padding: 4px; font-size: .77rem; }

@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 108px; }
  .wrap { width: calc(100% - 36px); }
  .head-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 7px; }
  .header .brand img { width: 38px; height: 38px; }
  nav { gap: 20px; }
  .nav-order { border: 0; padding: 0; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 37px; gap: 25px; }
  .hero-copy { max-width: 500px; }
  h1 { font-size: clamp(2.75rem, 10vw, 4.65rem); margin: 12px 0 16px; }
  .actions { margin-top: 20px; }
  .hero-hint { margin-top: 14px; }
  .hero-visual { max-width: 540px; }
  .catalog-section { padding-block: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 19px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .catalog-tools { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .search { flex: 1 0 100%; }
  .product-meta { padding: 11px; }
  .custom-section { padding-top: 36px; }
  .custom-panel { grid-template-columns: 1fr; }
  .custom-detail { display: none; }
  .order-section { padding-block: 37px; }
  .order-steps { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { flex-wrap: wrap; padding-block: 14px; gap: 9px 18px; }
  .footer-inner > span { display: none; }
}
@media (max-width: 490px) {
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: .85rem; }
  .product-card h3 { font-size: .96rem; }
  .product-meta .product-actions { flex-direction: column; }
  .product-meta .button { flex-basis: auto; }
  .product-dialog-body { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .actions .button { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
