.qaz-preorder {
    --qaz-paper: #f3f0eb;
    --qaz-ink: #252421;
    --qaz-muted: #5d554e;
    --qaz-rule: #dcd4c9;
    color: var(--qaz-ink);
}

.qaz-preorder [hidden] { display: none !important; }
.qaz-preorder h1, .qaz-preorder h2, .qaz-preorder h3, .qaz-preorder figure { margin: 0; }
.qaz-preorder img { display: block; max-width: 100%; }
.qaz-preorder :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--es-red, #a72e24);
    outline-offset: 3px;
}

.qaz-preorder__hero { background: var(--qaz-paper); padding-block: clamp(32px, 5vw, 76px); }
.qaz-preorder__hero-grid, .qaz-preorder__split {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(26px, 5vw, 84px);
}

.qaz-preorder h1, .qaz-preorder h2, .qaz-preorder h3 {
    font-family: var(--font-display, Onest), sans-serif;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.qaz-preorder h1 {
    grid-column: 1 / -1;
    font-size: clamp(30px, 4.25vw, 64px);
    font-weight: 750;
    text-wrap: wrap;
    overflow-wrap: anywhere;
}
.qaz-preorder__hero-grid { row-gap: clamp(18px, 3vw, 36px); }
.qaz-preorder h2 { font-size: clamp(29px, 3.6vw, 50px); }
.qaz-preorder h3 { font-size: 23px; }
.qaz-preorder__hero-copy p, .qaz-preorder__intro {
    margin: 18px 0 0;
    max-width: 56ch;
    color: var(--qaz-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}

.qaz-preorder__hero-copy p { margin-top: 0; }
.qaz-preorder__hero-copy .es-btn { margin-top: 36px; }
.qaz-preorder__hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    height: auto;
    object-fit: cover;
    object-position: 55% center;
    border-radius: 6px;
}
.qaz-preorder__section { padding-block: clamp(48px, 7vw, 104px); }
.qaz-preorder__navigation:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 20px;
    padding: 6px;
    background: #fff1e6;
    border: 1px solid #e5aa80;
    border-radius: 10px;
}
.qaz-preorder__filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 4px;
}
.qaz-preorder__navigation button {
    color: #673618;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    padding: 8px 14px;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.qaz-preorder__navigation button:hover { background: #ffdfc7; }
.qaz-preorder__filters button[aria-selected=true] {
    background: #ed8b43;
    color: #30180b;
    border-color: #a84d15;
}
.qaz-preorder__pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
    color: #673618;
    font-variant-numeric: tabular-nums;
}
.qaz-preorder__pagination button { width: 44px; padding: 0; background: #fffaf6; border-color: #dc9d6f; }
.qaz-preorder__collection h3 { margin: 22px 0 14px; }
.qaz-preorder__navigation:not([hidden]) ~ .qaz-preorder__collection { touch-action: pan-y pinch-zoom; }
.qaz-preorder__collection[role=tabpanel] h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 660px) {
    .qaz-preorder__filters { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qaz-preorder__filters button { padding-inline: 5px; }
}
.qaz-preorder__swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(9px, 1.4vw, 20px);
    list-style: none;
    padding: 0;
    margin: 0;
}
.qaz-preorder__swatch {
    width: 100%;
    display: block;
    border: 1px solid var(--qaz-rule);
    border-radius: 6px;
    padding: 6px 6px 0;
    background: #fff;
    color: var(--qaz-ink);
    text-align: left;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.qaz-preorder__swatch:disabled { cursor: default; }
.qaz-preorder__swatch:not(:disabled):hover, .qaz-preorder__swatch[aria-pressed=true] { border-color: var(--es-red, #a72e24); }
.qaz-preorder__swatch[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--es-red, #a72e24); }
.qaz-preorder__swatch img { width: 100%; height: auto; aspect-ratio: 420 / 201; object-fit: contain; background: #f5f2ee; border-radius: 3px; }
.qaz-preorder__swatch span { display: block; padding: 8px 4px; overflow-wrap: anywhere; }
.qaz-preorder__selection { margin: 16px 0 0; font-weight: 700; }
.qaz-preorder__selection a, .qaz-preorder__contacts a { color: inherit; text-decoration: underline; text-underline-offset: .22em; }

.qaz-preorder__spec-band { background: var(--qaz-paper); }
.qaz-preorder__spec-band .qaz-preorder__split, .qaz-preorder__form-band .qaz-preorder__split { align-items: start; }
.qaz-preorder__sample { margin-top: 24px !important; }
.qaz-preorder__sample img, .qaz-preorder__lab img { width: 100%; height: auto; border-radius: 6px; }
.qaz-preorder__specs { margin: 0; border-top: 1px solid var(--qaz-rule); }
.qaz-preorder__specs > div {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--qaz-rule);
}
.qaz-preorder__specs dt { color: var(--qaz-muted); }
.qaz-preorder__specs dd { margin: 0; font-weight: 700; }

.qaz-preorder__form-band { background: var(--qaz-paper); scroll-margin-top: 100px; }
.qaz-preorder__contacts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-weight: 750; }
.qaz-preorder__form-card { min-width: 0; background: #fff; border: 1px solid var(--qaz-rule); border-radius: 8px; padding: clamp(16px, 3vw, 36px); }
.qaz-preorder__form-card h2 { font-size: clamp(24px, 2.55vw, 37px); }
.qaz-preorder__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.qaz-preorder__form label { display: grid; align-content: start; gap: 6px; min-width: 0; font-weight: 700; }
.qaz-preorder__form small { color: var(--qaz-muted); font-weight: 400; }
.qaz-preorder__form :is(input:not([type=checkbox]), select, textarea) {
    min-width: 0;
    width: 100%;
    border: 1px solid #afa49a;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    padding: 10px;
    min-height: 44px;
    font: inherit;
    font-weight: 400;
}
.qaz-preorder__form textarea { resize: vertical; }
.qaz-preorder__form input[type=file]::file-selector-button {
    border: 1px solid var(--qaz-rule);
    border-radius: 4px;
    background: var(--qaz-paper);
    color: inherit;
    font: inherit;
    padding: 5px 8px;
    margin-right: 8px;
    cursor: pointer;
}
.qaz-preorder__wide { grid-column: 1 / -1; }
.qaz-preorder__form label.qaz-preorder__consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.qaz-preorder__consent input { flex: none; margin-top: .26em; accent-color: var(--es-red, #a72e24); }
.qaz-preorder__form > .es-btn { justify-self: start; }
.qaz-preorder__form-card > :is(.es-order__ok, .es-order__error) { margin-top: 18px; }

@media (max-width: 1000px) {
    .qaz-preorder__swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
    .qaz-preorder__hero-grid, .qaz-preorder__split { grid-template-columns: minmax(0, 1fr); }
    .qaz-preorder__hero-photo img { aspect-ratio: 4 / 3; }
    .qaz-preorder__lab figure { order: 2; }
}

@media (max-width: 470px) {
    .qaz-preorder__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qaz-preorder__form { grid-template-columns: minmax(0, 1fr); }
    .qaz-preorder__form > .es-btn { width: 100%; }
}
