/* ValleyGuns.com */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1f2420;
  --ink-2: #4a524b;
  --muted: #6d746d;
  --line: #ddd8cc;
  --brand: #2f4a35;      /* Blue Ridge pine */
  --brand-2: #1f3324;
  --accent: #b5832a;     /* brass */
  --accent-2: #94681c;
  --danger: #a3312a;
  --ok: #2f6b3c;
  --warn: #8a6510;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --head: "Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; letter-spacing: .01em; }
h1 { font-size: 2rem; margin: .6em 0 .4em; }
h2 { font-size: 1.4rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1em 0 .4em; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: #1f2420; color: #eae6da; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }

/* Header */
.site-head { background: var(--brand-2); color: #f1ede2; }
.head-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #f1ede2; text-decoration: none; font-family: var(--head); font-size: 1.6rem; letter-spacing: .02em; }
.logo svg { color: var(--accent); }
.logo strong { color: var(--accent); font-weight: 700; }
.logo small { font-size: .7em; opacity: .75; }
.logo:hover { color: #fff; }
.quick { flex: 1; display: flex; max-width: 640px; margin-left: auto; }
.quick select, .quick input, .quick button { border: 0; font: inherit; padding: 9px 12px; }
.quick select { border-radius: var(--radius) 0 0 var(--radius); background: #e8e3d6; max-width: 150px; }
.quick input { flex: 1; min-width: 0; width: 100%; }
.quick button { background: var(--accent); color: #1a1408; font-weight: 700; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.quick button:hover { background: #c99636; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: 8px 12px; font: inherit; }
.nav { background: var(--brand); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav a { color: #eef0e8; text-decoration: none; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.hl { color: var(--accent); }
.nav .spacer { flex: 1; }
.nav .btn-sm { background: var(--accent); color: #1a1408; border-radius: var(--radius); padding: 6px 12px; margin-left: 6px; }
.nav .btn-sm:hover { background: #c99636; color: #1a1408; }

main.wrap { padding-top: 10px; padding-bottom: 40px; min-height: 60vh; }

/* Buttons and forms */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius); padding: 10px 18px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: #ebe7dc; color: var(--brand-2); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #82241f; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea,
.res-tools select, .portal-tools input, .portal-tools select, .bulk-bar select, .keybox input {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1px solid #c9c3b4; border-radius: 6px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .check, .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 4px; accent-color: var(--brand); }
.form fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 16px; }
.form legend { font-family: var(--head); font-size: 1.1rem; padding: 0 6px; color: var(--brand); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.radio-group { margin-bottom: 12px; }
.radio-group .lbl { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 4px; }
.radio-group .check { display: inline-flex; margin-right: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.hint { color: var(--muted); font-size: .92rem; }
.hp { position: absolute !important; left: -9999px; }
.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; border: 1px solid; }
.alert-success { background: #e9f3eb; border-color: #b6d6bd; color: #1f4d29; }
.alert-error { background: #f8e9e7; border-color: #e3b9b4; color: #7a221c; }
.alert-warn { background: #fbf2dc; border-color: #e8d29b; color: #6b4e0b; }
.alert-info { background: #ebeff0; border-color: #c4cfd2; color: #2c3c41; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--brand-2) linear-gradient(115deg, var(--brand-2) 0%, var(--brand) 60%, #3d5a3f 100%); color: #f1ede2; border-radius: 12px; padding: 36px 40px; margin: 20px 0 10px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 520px; height: 200px; background: repeating-linear-gradient(170deg, transparent 0 28px, rgba(255,255,255,.04) 28px 30px); transform: skewY(-6deg); pointer-events: none; }
.hero h1 { font-size: 2.5rem; margin: 0 0 .3em; color: #fff; }
.hero p { max-width: 640px; color: #dcdccf; font-size: 1.08rem; }
.hero-search { display: flex; max-width: 680px; margin: 18px 0 10px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.hero-search select, .hero-search input { border: 0; font: inherit; padding: 13px 14px; }
.hero-search select { background: #eeeadf; max-width: 170px; }
.hero-search input { flex: 1; min-width: 0; }
.hero-search .btn { border-radius: 0; background: var(--accent); border-color: var(--accent); color: #1a1408; padding: 0 26px; }
.hero-search .btn:hover { background: #c99636; }
.hero-links a { color: #f1d9a6; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin: 0; position: relative; z-index: 1; }
.stats div { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px 18px; text-align: center; }
.stats dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.stats dd { margin: 0; font-family: var(--head); font-size: 1.9rem; color: var(--accent); }
.stats-inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0; }
.stats-inline div { background: var(--surface); border-color: var(--line); color: var(--ink); }
.stats-inline dd { color: var(--brand); }

.sec-h { font-size: 1.45rem; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-row a { font-weight: 600; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); text-align: center; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.cat svg { width: 48px; height: 48px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cat span { font-weight: 700; font-size: .95rem; }
.cat small { color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #c7bfa9; color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; background: #ece8de; position: relative; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.noimg { color: var(--muted); font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--font); font-size: .98rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: 0 0 6px; color: var(--muted); font-size: .85rem; }
.card .price { margin: auto 0 0; font-family: var(--head); font-size: 1.25rem; color: var(--brand); }
.badge { position: absolute; top: 8px; left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.badge.new { background: var(--accent); color: #1a1408; }
.badge.sold { background: var(--danger); color: #fff; }
.badge.pend { background: #555; color: #fff; }
td .badge, .d-info .badge { position: static; display: inline-block; }
.badge.big { font-size: .95rem; }

/* Results */
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.res-head h1 { margin-bottom: 0; }
.res-head p { margin: 4px 0 0; }
.res-tools { display: flex; align-items: center; gap: 12px; }
.res-tools label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.res-tools select { width: auto; margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid #c9c3b4; border-radius: 6px; overflow: hidden; }
.view-toggle a { padding: 7px 12px; text-decoration: none; color: var(--ink-2); background: #fff; font-size: .9rem; }
.view-toggle a.on { background: var(--brand); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.chip { background: #e6e1d3; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: 99px; font-size: .88rem; }
.chip:hover { background: #dbd3bf; color: var(--danger); }
.chip-edit { background: transparent; border: 1px dashed #b9b19c; }
.rss { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; color: #b25d0e; text-decoration: none; }
.rss::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: #e07a17 radial-gradient(circle at 25% 75%, #fff 1.5px, transparent 2px); }
.rss:hover { color: #8c470a; text-decoration: underline; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid #ece8de; text-align: left; vertical-align: middle; }
table.list th { background: #f1eee6; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
table.list .num { text-align: right; white-space: nowrap; }
table.list .price { font-weight: 700; color: var(--brand); }
table.list .thumb { width: 72px; }
table.list .thumb img { width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { padding: 6px 12px; border-radius: 6px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Advanced search */
.adv fieldset { padding-bottom: 8px; }

/* Listing detail */
.crumbs { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-top: 10px; }
.g-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.g-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 8px; }
.g-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-info h1 { margin-top: 0; font-size: 1.75rem; }
.d-price { font-family: var(--head); font-size: 2.1rem; color: var(--brand); margin: 0 0 14px; }
.dealer-box { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.dealer-box p { margin: 0 0 4px; }
.dlogo { width: 72px; height: 72px; object-fit: contain; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { padding: 7px 12px; border-bottom: 1px solid #ece8de; text-align: left; font-size: .95rem; }
.specs th { width: 40%; color: var(--ink-2); font-weight: 600; background: #f8f6f1; }
.detail-lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-top: 10px; }
.desc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fine { font-size: .82rem; color: var(--muted); }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; align-self: start; }
.lightbox { position: fixed; inset: 0; background: rgba(10,12,10,.92); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }

/* Dealers */
.dealer-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dchip { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.dchip img { width: 44px; height: 44px; object-fit: contain; }
.dchip span { display: flex; flex-direction: column; }
.dchip small { color: var(--muted); }
.dealer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #ece5d2; border: 1px solid #dccfaf; border-radius: 12px; padding: 24px 30px; margin-top: 36px; }
.dealer-cta h2 { margin-top: 0; }
.dealer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dcard { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); }
.dcard:hover { border-color: var(--accent); color: var(--ink); }
.dcard img, .dmono { width: 64px; height: 64px; object-fit: contain; flex: none; }
.dmono { background: var(--brand); color: var(--accent); font-family: var(--head); font-size: 2rem; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.dcard h3 { margin: 0 0 2px; }
.dcard p { margin: 0; }
.shop-head { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.shop-head h1 { margin-top: 0; }
.shop-head p { margin: 4px 0; }
.shop-logo { width: 120px; height: 120px; object-fit: contain; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 16px 0; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--accent); }

/* Feeds */
.feed-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.feed-main h2 { margin: 0; }
.feed-main p { margin: 2px 0 0; }
.feed-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feed-actions code { background: #f1eee6; padding: 4px 8px; border-radius: 4px; word-break: break-all; }

/* Dealer portal */
.portal-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.portal-head h1 { margin-bottom: 0; }
.portal-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.portal-tools form { display: flex; gap: 6px; }
.portal-tools input, .portal-tools select { width: auto; margin: 0; }
.portal-tools > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bulk-bar select { width: auto; margin: 0; }
.st { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e6e1d3; }
.st-active { background: #dcebdf; color: #1f4d29; }
.st-sold, .st-suspended { background: #f3dcd9; color: #7a221c; }
.st-pending { background: #f6e9c4; color: #6b4e0b; }
.st-hidden { background: #e2e2e2; color: #444; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.ph img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }
.ph-act { display: flex; }
.ph-act button { flex: 1; border: 0; border-top: 1px solid var(--line); background: #f6f4ef; padding: 5px; font: 600 .8rem var(--font); cursor: pointer; }
.ph-act button:hover { background: #ebe7dc; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.step h3 { margin-top: 4px; }
.step-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #1a1408; font-weight: 700; align-items: center; justify-content: center; }
.errlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.errlist ul { max-height: 260px; overflow: auto; font-size: .9rem; }
.cols td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; white-space: nowrap; }
.keybox { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.keybox label { flex: 1; min-width: 260px; font-weight: 600; }
.keybox input { font-family: ui-monospace, Menlo, Consolas, monospace; }
.inq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.inq.unread { border-left: 4px solid var(--accent); }
.inq header { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.auth { margin: 30px auto; }

/* Legal */
.legal { max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 34px 26px; margin: 20px 0; }
.legal h2 { font-size: 1.2rem; color: var(--brand); }
.legal p, .legal li { font-size: .98rem; }

/* Footer */
.site-foot { background: #1b221d; color: #c9cbbf; margin-top: 30px; padding-top: 30px; font-size: .93rem; }
.site-foot a { color: #e3d6b4; text-decoration: none; display: block; padding: 2px 0; }
.site-foot a:hover { color: #fff; }
.site-foot p a { display: inline; }
.site-foot h4 { color: #fff; margin: 0 0 8px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-logo { font-family: var(--head); font-size: 1.4rem; color: #fff; margin: 0 0 6px; }
.foot-logo strong { color: var(--accent); }
.disclaimer { border-top: 1px solid #333c35; margin-top: 24px; padding-top: 16px; padding-bottom: 24px; font-size: .84rem; color: #a8ab9f; }
.disclaimer a { display: inline; }

/* Age gate */
.gate-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--brand-2); }
.gate-backdrop { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 20%, #3d5a3f 0%, var(--brand-2) 55%, #121812 100%); }
.gate-backdrop::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(160deg, transparent 0 40px, rgba(255,255,255,.025) 40px 42px); }
.gate { position: relative; z-index: 1; background: #fbfaf6; border-radius: 14px; max-width: 560px; width: 100%; padding: 30px 34px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45); border-top: 6px solid var(--accent); }
.gate-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.6rem; color: var(--brand-2); }
.gate-logo svg { color: var(--accent); }
.gate-logo strong { color: var(--brand); }
.gate h1 { font-size: 1.6rem; margin: 16px 0 8px; }
.gate p { color: var(--ink-2); }
.gate-list { padding-left: 20px; color: var(--ink-2); font-size: .95rem; }
.gate-check { display: flex; gap: 10px; align-items: flex-start; background: #f1eee4; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 16px 0; font-size: .95rem; }
.gate-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.gate-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-btns .btn { flex: 1; text-align: center; min-width: 200px; }
.gate-fine { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Installer */
body.install { padding: 20px 0 60px; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 3px 0; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--danger); font-weight: 700; }

/* Responsive */
@media (max-width: 980px) {
  .detail, .detail-lower { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; }
  .quick { order: 3; flex-basis: 100%; max-width: 100%; min-width: 0; }
  .quick select { max-width: 92px; }
  .quick button { padding: 9px 12px; }
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-row { flex-direction: column; align-items: stretch; padding: 6px 0; }
  .nav .spacer { display: none; }
  .nav .btn-sm { margin: 6px 12px; text-align: center; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-search { flex-wrap: wrap; }
  .hero-search select { max-width: none; flex-basis: 100%; }
  .hero-search .btn { padding: 12px 18px; }
  .dealer-cta { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .legal { padding: 6px 18px 18px; }
  .shop-head { flex-direction: column; }
  h1 { font-size: 1.6rem; }
}
