
:root {
  --ink:#282522; --muted:#615750; --muted-light:#70665d; --red:#a52332; --deep-red:#811923;
  --paper:#faf7f2; --blush:#f5eae3; --rule:#e9e0d6; --white:#fff;
  font-family:"DM Sans",Arial,sans-serif; color:var(--ink); background:var(--paper);
  font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0}
button,input,select {font:inherit}
a {color:inherit}
button {cursor:pointer}
:focus-visible {outline:3px solid #823745;outline-offset:3px}
h1,h2,p {margin:0}
img {display:block;max-width:100%}
[hidden] {display:none!important}
.wrap {width:min(1290px,calc(100% - 88px));margin-inline:auto}
.masthead {background:#fff;border-bottom:1px solid var(--rule)}
.masthead .wrap {min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand {display:flex;align-items:center;gap:23px}
.brand img {width:118px;height:auto}
.brand span {border-left:1px solid var(--rule);padding-left:23px;color:var(--muted);font-size:13px}
.preview {font-size:12px;color:var(--muted);border:1px solid var(--rule);border-radius:20px;padding:6px 10px}
main {padding-top:24px}
.hero {position:relative;isolation:isolate;overflow:hidden;background:var(--blush);border:1px solid #eeded3;
  border-radius:18px;padding:33px 42px;min-height:217px;display:grid;grid-template-columns:minmax(0,1fr) 37%;align-items:center;gap:24px}
.hero::before {position:absolute;z-index:-1;content:"";right:-10%;top:-95%;width:55%;aspect-ratio:1;border-radius:50%;
  border:1px solid #e5cfc2;box-shadow:0 0 0 43px #f1e4db,0 0 0 44px #ead7cc}
.hero h1 {font-family:"DM Serif Text",Georgia,serif;font-weight:400;font-size:clamp(39px,4vw,61px);letter-spacing:-.048em;line-height:0.98;max-width:660px}
.hero h1 em {color:var(--red);font-weight:400}
.hero p {font-size:15px;color:var(--muted);line-height:1.55;margin:16px 0 0;max-width:470px}
.hero figure {margin:0;text-align:center;align-self:center}
.hero figure img {width:min(100%,290px);height:148px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 9px 10px #623a2e24)}
.hero figcaption {margin-top:0;font-size:11px;color:var(--muted);letter-spacing:.05em;font-weight:700}
.filters {display:grid;grid-template-columns:minmax(150px,1fr) minmax(175px,1.2fr) minmax(190px,2fr) auto;gap:12px;align-items:end;margin-top:22px}
.filters label,.request-form label {display:grid;gap:7px;color:var(--ink);font-size:12px;font-weight:700}
input,select {height:44px;width:100%;min-width:0;border:1px solid #ddcfc3;border-radius:7px;color:var(--ink);background:#fff;padding:0 12px;font-size:14px}
input::placeholder {color:var(--muted-light)}
.result-count {font-size:13px;color:var(--muted);margin-top:18px}
.grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:15px}
.card {display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--rule);border-radius:11px;overflow:hidden;box-shadow:0 4px 14px #3e292006}
.card-media {position:relative;height:140px;margin:9px 9px 0;border-radius:7px;background:#fff}
.card-media img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.card-content {display:flex;flex:1;flex-direction:column;padding:12px 13px 13px;min-width:0}
.ref {font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.card h2 {font-size:clamp(16px,1.44vw,21px);line-height:1.16;letter-spacing:-.027em;margin-top:5px;min-height:2.35em;overflow-wrap:anywhere}
.use {font-size:12px;color:var(--muted);line-height:1.55;min-height:3.1em;margin-top:5px}
.models {display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;list-style:none;margin:11px 0 12px;padding:0;min-height:22px}
.models li {border-radius:4px;background:#f5efe8;color:#4a4039;font-size:11px;line-height:1.2;padding:4px 5px;white-space:nowrap}
.order {margin-top:auto;border-top:1px solid var(--rule);padding-top:10px}
.price {font-size:13px;font-weight:700}
.delivery {font-size:12px;color:var(--muted);margin:4px 0 11px}
.request,.confirm {display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:40px;width:100%;padding:7px 9px;
  border:1px solid var(--red);border-radius:5px;background:#fff;color:var(--deep-red);font-size:12px;font-weight:700;text-align:left}
.request:hover,.confirm:hover {background:var(--deep-red);border-color:var(--deep-red);color:#fff}
.request-arrow {position:relative;width:12px;height:10px;margin-right:3px;flex:none}
.request-arrow::before {content:"";position:absolute;top:4px;left:1px;width:10px;border-top:1px solid currentColor}
.request-arrow::after {content:"";position:absolute;top:2px;right:1px;width:5px;height:5px;border-right:1px solid currentColor;border-top:1px solid currentColor;transform:rotate(45deg)}
.confirm {background:var(--red);color:#fff;justify-content:center;padding:10px 16px;font-size:14px}
.zero {padding:30px 12px;text-align:center;color:var(--muted)}
footer {margin-top:20px;padding:13px 0 27px;color:var(--muted);font-size:12px;border-top:1px solid var(--rule);line-height:1.5}
footer a {text-underline-offset:3px}
dialog {width:min(498px,calc(100% - 32px));max-height:88vh;overflow:auto;margin:auto;padding:25px;
  border:1px solid var(--rule);border-radius:12px;color:var(--ink);box-shadow:0 15px 50px #281a1740}
dialog::backdrop {background:#20140f6b}
.dialog-title {display:flex;justify-content:space-between;gap:16px;align-items:start}
.dialog-title h2 {font-size:23px;line-height:1.15}
.close {margin:-8px -8px 0 0;padding:4px 9px;border:0;background:none;color:var(--ink);font-size:24px;line-height:1}
.dialog-part {margin:10px 0 16px;font-size:13px;color:var(--muted);line-height:1.6}
.request-form {display:grid;grid-template-columns:1fr 105px;gap:13px}
.request-form .full {grid-column:1/-1}
.dialog-hint {margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.summary {margin:10px 0;padding:14px;border-radius:7px;background:var(--blush);line-height:1.55;font-size:14px}
@media(max-width:1120px) {
  .wrap {width:calc(100% - 48px)}
  .grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .card h2 {font-size:19px}
}
@media(max-width:760px) {
  .wrap {width:calc(100% - 32px)}
  .hero {padding:26px 23px;grid-template-columns:minmax(0,1fr) 30%;gap:13px}
  .hero h1 {font-size:clamp(33px,6vw,49px)}
  .hero figure img {height:100px}
  .hero p {font-size:14px}
  .grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters {grid-template-columns:170px 1fr}
  .result-count {grid-column:1/-1;padding:0}
}
@media(max-width:480px) {
  .masthead .wrap {min-height:58px}
  .brand {gap:12px}.brand span {padding-left:12px;font-size:12px}.brand img {width:88px}
  .preview {font-size:10px;padding:5px 7px}
  main {padding-top:14px}
  .hero {min-height:0;padding:21px 16px;border-radius:13px}
  .hero h1 {font-size:clamp(29px,8.2vw,37px)}
  .hero p {font-size:12px;margin-top:11px}.hero figure img {height:80px}.hero figcaption {font-size:9px}
  .filters {grid-template-columns:1fr;gap:9px;margin-top:16px}.grid {grid-template-columns:1fr;margin-top:11px}
  .card {display:grid;grid-template-columns:minmax(82px,31%) minmax(0,1fr)}
  .card-media {height:auto;min-height:104px;margin:12px 0 12px 9px}
  .card h2,.use {min-height:0}.card h2 {font-size:18px}
  .models {margin:8px 0;gap:3px}
  .card-content {padding:11px 11px 11px 12px}
}
.skip-link {position:absolute;z-index:4;left:16px;top:-90px;padding:10px;background:#fff}
.skip-link:focus {top:12px}
.brand a {display:block}
.card h2 a {text-decoration:none}
.card h2 a:hover,.caption a:hover,.back-link:hover {color:var(--deep-red)}
.card-media {display:block}
.text-button {background:none;border:0;color:var(--deep-red);text-decoration:underline;text-underline-offset:3px;font-size:13px;min-height:38px;text-align:left;padding:0 9px}
.filters .text-button {white-space:nowrap}
.pagination {display:flex;justify-content:center;align-items:center;gap:16px;margin:22px 0}
.pagination button {border:1px solid var(--rule);border-radius:5px;padding:8px 13px;background:#fff;color:var(--ink)}
.pagination button:disabled {opacity:.5;cursor:default}
.pagination span {font-size:13px;color:var(--muted)}
.details-view {margin-block:10px 26px}
.back-link {display:inline-block;margin:3px 0 16px;color:var(--muted);text-underline-offset:3px}
.details-grid {display:grid;grid-template-columns:1fr 1fr;gap:36px;background:#fff;border:1px solid var(--rule);border-radius:14px;padding:26px}
.detail-photo {position:relative;height:320px;background:#fff}
.detail-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.detail-info h1 {margin:6px 0 12px;overflow-wrap:anywhere;font-family:Georgia,serif;font-size:clamp(28px,3vw,42px);font-weight:400}
.detail-info .price {margin-top:16px;font-size:16px}
.detail-info dl {display:grid;grid-template-columns:minmax(135px,1fr) minmax(0,1.25fr);gap:10px 16px;margin:20px 0;font-size:14px}
.detail-info dd {margin:0;overflow-wrap:anywhere}
.detail-info dt {color:var(--muted)}
.detail-info .models {margin:0}
.detail-info .request {width:auto;min-width:195px}
.caption {margin-top:10px;color:var(--muted);font-size:12px}
footer {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.draft-actions {display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-block:14px}
.draft-actions .confirm {width:auto;text-decoration:none}
#draft-text {width:100%;max-width:100%;margin-bottom:8px}
#request-draft>p {font-size:14px;line-height:1.5}
@media(max-width:760px) {
  .filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  .details-grid {gap:16px;padding:20px}
  .detail-info dl {display:block}
  .detail-info dt {margin-top:10px}
  .detail-photo {height:260px}
}
@media(max-width:480px) {
  .filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters label:nth-child(3) {grid-column:1/-1}
  .filters .text-button {padding:0}
  .details-grid {grid-template-columns:1fr;padding:15px}
  .detail-photo {height:185px}
  .card-media .empty-photo {height:auto;min-height:95px;padding:8px;text-align:center}
}

.part-fitment {margin:0 0 18px;font-size:14px;color:var(--muted)}
.part-fitment summary {cursor:pointer;color:var(--ink)}
.part-fitment ul {padding-inline-start:20px;overflow-wrap:anywhere}
.part-fitment li+li {margin-top:6px}

.media-kind {margin-top:7px;color:var(--muted);font-size:11px;line-height:1.3}
.empty-photo {display:grid;place-items:center;height:100%;width:100%;padding:12px;background:#f8f4ef;border:1px dashed var(--rule);border-radius:6px;color:var(--muted);font-size:12px;text-align:center}
.detail-info > p:not(.ref,.price,.delivery) {font-size:15px;line-height:1.55}
