:root {
  color-scheme: dark;
  --shop-surface: #0b0b13;
  --shop-ink: #f4f3f7;
  --shop-muted: #bcb9cb;
  --shop-line: #494557;
  --shop-field: #1b1825;
  --shop-heading: #ffafcf;
  --shop-accent: #72e6ff;
}

* { box-sizing: border-box; }
html { background: var(--shop-surface); }
body { margin: 0; color: var(--shop-ink); font: 16px/1.65 Manrope, Arial, sans-serif; }
#app { width: min(1120px, 100%); min-height: 100svh; margin: 0 auto; padding: 36px 48px 64px; }
a { color: var(--shop-accent); text-underline-offset: 4px; }
h1, h2 { line-height: 1.16; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; margin: 0 0 20px; color: var(--shop-heading); letter-spacing: -.025em; }
h2 { font-size: 26px; line-height: 1.3; margin: 0 0 10px; }
:is(a, button, input, summary):focus-visible { outline: 3px solid var(--shop-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shop-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; min-height: 44px; }
.shop-maker { color: var(--shop-ink); font-weight: 750; letter-spacing: -.03em; font-size: 20px; text-decoration: none; }
.shop-language { display: flex; gap: 4px; margin-left: auto; }
.shop-language a { display: inline-grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; }
.shop-language [aria-current=page] { border-color: var(--shop-line); background: var(--shop-field); color: var(--shop-ink); }
.shop-sections, .shop-footer { display: flex; flex-wrap: wrap; gap: 0 22px; }
.shop-sections { padding-bottom: 10px; margin-bottom: 24px; border-bottom: 1px solid var(--shop-line); }
.shop-sections a, .shop-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.shop-sections [aria-current=page], .shop-footer a:hover, .shop-maker:hover { text-decoration: underline; }
.shop-mode, .shop-install { color: var(--shop-accent); font-weight: 650; font-size: 14px; margin: 0 0 14px; }
.shop-install { display: inline-block; font-weight: 400; }
.shop-offer { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 44px; align-items: center; margin: 10px 0 28px; }
.offer-copy p { max-width: 65ch; margin: 12px 0; }
.shop-price { font-size: 29px; font-variant-numeric: tabular-nums; }
.shop-models { display: inline-block; font-size: 14px; margin-top: 6px; }
.shop-design-link { display: block; width: fit-content; margin-top: 12px; font-weight: 700; }
.shop-watch { margin: 0; width: 100%; text-align: center; }
.shop-watch img { display: block; width: 250px; max-width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; margin: 0 auto; }
.shop-watch figcaption { font-size: 13px; color: var(--shop-muted); margin-top: 12px; }
.shop-payment { border-top: 1px solid var(--shop-line); padding: 36px 0 0; }
.shop-payment p, .shop-document p { max-width: 66ch; }
.pairing-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 34px 0 8px; }
.pairing-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.pairing-form input { min-height: 58px; width: 12ch; border: 1px solid var(--shop-line); border-radius: 8px; color: var(--shop-ink); background: var(--shop-field); padding: 7px 12px; font: 20px ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.pairing-form [aria-invalid=true] { border-color: #ffbed9; }
button { min-height: 46px; max-width: 100%; border: 1px solid var(--shop-line); border-radius: 9px; color: var(--shop-ink); background: var(--shop-field); padding: 12px 18px; font: 700 14px/1.4 Manrope, Arial, sans-serif; cursor: pointer; }
button.shop-primary { min-height: 44px; background: var(--shop-accent); border-color: transparent; color: #090910; }
button.shop-primary:hover { filter: brightness(1.1); }
button:disabled { opacity: .65; cursor: wait; }
.pairing-form.retail-pairing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: min(100%, 520px);
  padding: 16px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: #15121f;
}
.retail-pairing input, .retail-pairing button.shop-primary { width: 100%; min-height: 58px; }
.retail-pairing button.shop-primary { white-space: normal; }
.shop-status { color: var(--shop-accent); }
.shop-status:empty { display: none; }
.shop-help { padding-block: 2px; }
.shop-help summary { min-height: 44px; align-content: center; cursor: pointer; }
.shop-help p { margin-bottom: 16px; }
.shop-footer { margin-top: 42px; border-top: 1px solid var(--shop-line); padding-top: 12px; }
.shop-document { max-width: 860px; min-height: 44vh; }
.shop-document h2 { margin-top: 25px; }
.shop-document pre { padding: 14px 16px; border: 1px solid var(--shop-line); border-radius: 8px; background: var(--shop-field); white-space: pre-wrap; }
.retail-faq h1 { margin-bottom: 12px; }
.retail-faq-group { margin-block: 30px; }
.retail-faq-group h2 { margin: 0 0 12px; font-size: 18px; color: var(--shop-heading); }
.retail-faq-item { border-bottom: 1px solid var(--shop-line); }
.retail-faq-item:first-of-type { border-top: 1px solid var(--shop-line); }
.retail-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 8px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.retail-faq-item summary::-webkit-details-marker { display: none; }
.retail-faq-item summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-inline: 6px;
  border: solid var(--shop-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.retail-faq-item[open] summary::after { transform: rotate(225deg); }
.retail-faq-item summary:hover { color: var(--shop-accent); }
.retail-faq-item p { margin: 0 8px 16px; color: var(--shop-muted); }
.shop-confirmation { max-width: 740px; }
.shop-confirmation li { margin-block: 8px; }
.shop-test-receipt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--shop-line); }
.shop-test-receipt p { margin-block: 6px; }
.retail-receipt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--shop-line); }
.shop-primary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; color: #090910; background: var(--shop-accent); border-radius: 8px; font-weight: 700; }
.shop-test-receipt button { margin-top: 12px; }
.private-access { max-width: 560px; margin-top: 48px; }

.design-intro { margin-block: 38px 30px; max-width: 650px; }
.design-product { margin: 0 0 6px; color: var(--shop-accent); font-size: 14px; font-weight: 700; }
.design-intro h1 { margin: 0 0 10px; }
.design-intro p:last-child { margin: 0; color: var(--shop-muted); }
.design-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 46px); }
.design-example { margin: 0; }
.design-example img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #595067;
  border-radius: 50%;
  box-shadow: 0 6px 35px #bb3da823;
}
.design-example figcaption { margin-top: 19px; }
.design-example h2 { font-size: clamp(18px, 2.3vw, 22px); margin-bottom: 6px; }
.design-example p, .design-image-note { margin: 0; color: var(--shop-muted); }
.design-example p { font-size: 15px; line-height: 1.55; }
.design-image-note { font-size: 13px; margin-top: 22px; }
.design-try { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--shop-line); }
.design-try ol { padding-left: 1.4rem; max-width: 70ch; }
.design-try li + li { margin-top: 8px; }

@media (max-width: 700px) {
  #app { padding: 18px 22px 40px; }
  .shop-identity { gap: 10px; }
  .shop-sections, .shop-footer { column-gap: 16px; }
  .shop-offer { grid-template-columns: minmax(0, 1fr) 112px; gap: 0 14px; }
  .offer-copy { display: contents; }
  .shop-offer h1 { grid-column: 1 / -1; font-size: 30px; }
  .shop-offer p, .shop-models { grid-column: 1; font-size: 14px; margin: 3px 0; }
  .shop-design-link { grid-column: 1; font-size: 14px; }
  .shop-offer .shop-price { font-size: 22px; }
  .shop-watch { grid-column: 2; grid-row: 2 / span 4; align-self: center; }
  .shop-watch figcaption { font-size: 11px; }
  .shop-payment { padding-top: 24px; }
  .pairing-form { margin-top: 22px; }
  .design-intro { margin: 23px 0 24px; }
  .design-gallery { grid-template-columns: 1fr; gap: 26px; }
  .design-example { width: min(100%, 400px); padding-bottom: 18px; border-bottom: 1px solid var(--shop-line); margin-inline: auto; }
  .design-example img { width: min(100%, 310px); margin-inline: auto; }
  .design-example figcaption { margin-top: 13px; }
}

@media (max-width: 530px) {
  .pairing-form.retail-pairing { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  #app { padding-inline: 16px; }
  .shop-offer { grid-template-columns: minmax(0, 1fr) 94px; }
  .shop-maker { font-size: 17px; }
  .shop-language a { width: 40px; }
}

@media print {
  :root { color-scheme: light; --shop-surface: #fff; --shop-ink: #111; }
  .shop-identity, .shop-sections, .shop-footer, .shop-confirmation > :not(.shop-test-receipt),
  .shop-test-receipt button { display: none !important; }
  #app, .shop-test-receipt, .shop-confirmation { min-height: 0; padding: 0; margin: 0; border: 0; }
}
