:root {
  color-scheme: dark;
  --ink: #f1f7ff;
  --muted: #b6c8dc;
  --blue: #70dcff;
  --line: #2a455f;
  --panel: #101e30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #080f1c; color: var(--ink); font: 1rem/1.6 "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1280px, calc(100% - 36px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; padding: .6rem; background: var(--panel); transform: translateY(-160%); z-index: 1; }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); background: #070d17; }
.nav, nav, .brand, footer, .actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.nav { min-height: 76px; padding-block: .6rem; justify-content: space-between; }
.nav a { text-decoration: none; }
nav a:hover, .details a:hover { color: white; text-decoration: underline; }
.brand { font-weight: 800; letter-spacing: .07em; gap: .5rem; }
.brand img { border-radius: 8px; }
.brand b, h1 span, .details a { color: var(--blue); }
.hero { margin-top: 1.5rem; background: radial-gradient(ellipse at 90% 30%, #17375a, #0d192c 56%, #101e30); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.intro { padding: clamp(24px, 5vw, 64px); }
h1, h2, h3, p { margin: 0; }
h1 { line-height: 1.17; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -.03em; }
h2 { line-height: 1.3; font-size: clamp(1.55rem, 3.4vw, 2.55rem); }
.intro p, .contact p { margin: .9rem 0 1.2rem; color: var(--muted); }
.banner { width: 100%; height: auto; border-top: 1px solid var(--line); }
.button { min-height: 45px; display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: #081821; font-weight: 700; text-decoration: none; }
.button:hover { background: #a5ebff; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--blue); }
.catalog { padding-block: clamp(36px, 6vw, 76px); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1rem 1.45rem; }
.filters button { min-height: 44px; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #081821; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; }
.photo { display: block; overflow: hidden; }
.photo:focus-visible { outline-offset: -4px; }
.photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .22s ease; }
.photo:hover img { transform: scale(1.045); }
.details { padding: .85rem; flex: 1; display: flex; flex-direction: column; }
.details p { color: var(--muted); font-size: .88rem; }
.details h3 { font-size: 1.04rem; line-height: 1.4; margin-block: .25rem .45rem; }
.details a { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; align-self: start; }
.contact { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: clamp(20px,4vw,40px); }
footer { min-height: 78px; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { max-width: min(94vw, 820px); max-height: 94dvh; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #02060de0; }
dialog form { display: flex; justify-content: end; margin-bottom: .65rem; }
dialog button { min-height: 44px; padding-inline: .8rem; background: var(--panel); border: 1px solid var(--line); }
dialog img { margin: auto; max-height: 73dvh; object-fit: contain; }
dialog p { text-align: center; margin-top: .5rem; }
@media (max-width: 950px) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .details { padding: .65rem; }
  .shell { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .photo img { transition: none; } }
