:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --bg: #090f23;
  --surface: #141e3a;
  --border: #304263;
  --text: #f1f5ff;
  --muted: #b6c5dc;
  --accent: #8ae9ff;
  --warm: #ffd0ab;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--border); }
.brand { font-size: 1.75rem; font-weight: 800; letter-spacing: -.06em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); margin-left: .35em; font-size: .75rem; vertical-align: middle; }
nav { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); padding-block: 10px; text-decoration: none; font-weight: 650; font-size: .94rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
.cart-nav span:not(:empty) { margin-left: .45em; color: var(--accent); }
main { min-height: 65vh; padding-block: 32px 48px; }
main:focus { outline: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-block: 24px; color: var(--muted); font-size: .92rem; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 10px; transform: translateY(-180%); z-index: 3; padding: 12px; background: var(--bg); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.store-hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: min(535px, 65vh); overflow: hidden; border: 1px solid #334b79; border-radius: 22px; background: #111b38; }
.store-hero img { display: block; width: 100%; height: auto; object-fit: contain; }
.hero-copy { padding: clamp(24px, 5vw, 64px); }
.hero-copy, .page-head { animation: appear .3s ease-out both; }
@keyframes appear { from { opacity: .3; transform: translateY(7px); } to { opacity: 1; transform: none; } }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.55rem); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
h2 { font-size: clamp(1.22rem, 2.4vw, 1.65rem); line-height: 1.2; letter-spacing: -.027em; }
h3 { font-size: 1.1rem; }
p { color: var(--muted); line-height: 1.55; }
.hero-copy p { margin: 18px 0 25px; max-width: 33ch; }
.page-head { margin: 8px 0 26px; }
.page-head p { margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.panel { padding: clamp(16px, 2.6vw, 25px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.panel + .panel, .panel + form, .panel > * + * { margin-top: 12px; }
.grid > .panel { margin: 0; min-width: 0; }
.panel .price { color: var(--text); font-size: 1.55rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.product-img { display: block; width: 100%; aspect-ratio: 4/3; height: auto; object-fit: contain; background: #0d152b; border-radius: 10px; }
.action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .5em; color: var(--text); text-decoration: none; background: #1d2a4a; border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; font-weight: 675; }
.action.primary { color: #071b2b; background: var(--accent); border-color: transparent; }
.action:hover { border-color: var(--accent); }
.action.primary:hover { background: #baeff9; }
.action:active { transform: translateY(1px); }
form { display: grid; gap: 12px; max-width: 640px; }
.fields { display: grid; gap: 7px; }
.fields input:not([type="checkbox"]), .fields textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; min-height: 44px; width: 100%; background: #0b1328; color: var(--text); }
.fields input[type="checkbox"], .choice input { accent-color: var(--accent); }
form .row { justify-content: start; }
.choice { padding: 6px 0; display: flex; gap: 9px; align-items: center; color: var(--text); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.intro-band { margin-top: 20px; }
.badge { color: var(--warm); font-size: .9rem; font-weight: 650; }
.error { color: #ffbfb9; }
.admin-tabs { justify-content: start; margin-bottom: 14px; }
.admin-tabs [aria-pressed="true"] { border-color: var(--accent); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 8px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; font-size: .91rem; }
.login { max-width: 680px; padding-top: 12vh; }
.login p { margin: 16px 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-head { align-items: flex-start; gap: 0; flex-direction: column; padding-block: 13px 7px; }
  .site-head nav { gap: 0 14px; }
  .store-hero { grid-template-columns: 1fr; min-height: 0; }
  .store-hero img { order: -1; max-height: 250px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  main { padding: 19px 0 38px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
