* { box-sizing: border-box; }
:root { --brand: #1b4fce; --text: #0f1d3a; --muted: #5c6b8a; --border: #dde3f0; --bg: #f7f9ff; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.container { max-width: 1160px; margin: auto; padding: 0 24px; }
header { background: white; border-bottom: 1px solid var(--border); }
nav { display: flex; gap: 24px; align-items: center; min-height: 80px; }
nav a { text-decoration: none; font-weight: 600; }
.brand { display: flex; gap: 10px; align-items: center; margin-right: auto; color: var(--text); }
main { min-height: 75vh; padding-top: 48px !important; padding-bottom: 64px !important; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 8px 0 20px; }
h2, h3 { line-height: 1.3; }
.eyebrow, .badge { color: var(--brand); font-size: .85rem; font-weight: 700; }
.intro, .hint, #feed-status { color: var(--muted); }
.hint { font-size: .85rem; }
form { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-top: 24px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; flex: 1 1 180px; }
input, select, button, .action { font: inherit; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); }
input { min-width: 0; width: 100%; }
button, .action { cursor: pointer; font-weight: 600; }
button:hover, .action:hover { border-color: var(--brand); }
button:disabled { opacity: .45; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 16px; }
.card img, .no-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8effe; }
.no-photo { display: grid; place-items: center; color: var(--muted); }
.card-body { padding: 20px; }
.card h2 { font-size: 1.2rem; margin: 12px 0; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--brand); text-decoration: underline; }
.card p { margin: 8px 0; overflow-wrap: anywhere; }
.price { font-size: 1.15rem; font-weight: 700; }
.facts { color: var(--muted); }
.ber { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #e8effe; font-weight: 600; font-size: .9rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; }
#detail { max-width: 900px; margin: 28px auto 0; }
#detail .detail-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.gallery img { width: 100%; height: auto; border-radius: 12px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.action { display: inline-block; text-decoration: none; color: var(--brand); }
.description p { white-space: pre-wrap; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--border); padding: 20px 0; background: white; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: white; z-index: 1; }
.skip-link:focus { top: 12px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .grid, .gallery { grid-template-columns: 1fr; }
  nav { gap: 14px; font-size: .9rem; flex-wrap: wrap; padding-top: 12px !important; padding-bottom: 12px !important; }
  .brand { flex: 1 1 100%; }
  .pagination { gap: 12px; }
}
