@media (max-width: 900px) {
  :root {
    --qm-space-1: 4px;
    --qm-space-2: 8px;
    --qm-space-3: 12px;
    --qm-space-4: 16px;
    --qm-space-5: 20px;
    --qm-space-6: 24px;
    --qm-radius-sm: 10px;
    --qm-radius-md: 16px;
    --qm-radius-lg: 24px;
    --qm-surface: rgba(247, 247, 245, .96);
    --qm-card: rgba(255, 255, 255, .88);
    --qm-border: rgba(17, 17, 17, .10);
    --qm-shadow: 0 20px 55px rgba(16, 18, 16, .16);
    --qm-edge: 12px;
  }

  html { scroll-padding-top: 16px; }

  body.home,
  .wp-site-blocks,
  .wp-site-blocks > main,
  .quat-site {
    background-position: 58% top !important;
    background-size: auto 100vh !important;
  }

  .quat-site {
    width: 100%;
    min-width: 0;
    padding: max(12px, env(safe-area-inset-top)) 12px max(40px, env(safe-area-inset-bottom)) !important;
    overflow: clip;
  }

  .quat-header,
  .quat-config,
  .story,
  .support-intro,
  .support-grid,
  .quat-site footer {
    width: calc(100% - (var(--qm-edge) * 2));
    margin-left: auto;
    margin-right: auto;
  }

  .quat-header {
    position: relative;
    z-index: 20;
    height: 64px;
    padding: 0 16px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-bottom-color: var(--qm-border);
    border-radius: var(--qm-radius-lg) var(--qm-radius-lg) 0 0;
    background: rgba(247, 247, 245, .94);
    box-shadow: 0 10px 30px rgba(16, 18, 16, .08);
    backdrop-filter: blur(22px) saturate(1.1);
    min-width: 0;
    margin-top: var(--qm-edge);
  }

  .quat-logo-header { margin-right: auto; }
  .quat-logo-header img { height: 23px !important; max-width: 98px !important; }

  .cart-link {
    width: 38px;
    height: 38px;
    border: 1px solid var(--qm-border);
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 18, 16, .08);
  }

  .cart-count { width: 20px; height: 20px; font-size: 10px; }

  .quat-config {
    display: flex;
    min-height: 0;
    padding: 22px 16px 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background: var(--qm-surface);
    box-shadow: var(--qm-shadow);
    overflow: visible;
    min-width: 0;
  }

  .config-head {
    order: 1;
    width: 100%;
    gap: 12px;
    align-items: center;
  }

  .config-head .back {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--qm-border);
    box-shadow: 0 6px 18px rgba(16, 18, 16, .06);
    font-size: 17px;
  }

  .config-head h1 {
    margin: 0 0 5px;
    font-size: clamp(29px, 8vw, 36px);
    line-height: .98;
    letter-spacing: -.05em;
  }

  .config-head p {
    max-width: 28ch;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
  }

  .product-stage {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    width: 100%;
    height: 312px;
    margin: 10px 0 4px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 48%, #fff 0, rgba(255,255,255,.72) 42%, rgba(238,239,236,.24) 68%, transparent 72%);
    overflow: hidden;
  }

  .halo { width: 110%; height: 100%; opacity: .75; }

  .phone {
    width: 138px;
    height: 276px;
    border-width: 5px;
    border-radius: 29px;
    box-shadow: inset 0 0 0 1px #565656, 0 22px 36px rgba(0,0,0,.25);
  }

  .phone .island { top: 7px; width: 58px; height: 17px; }
  .phone .shine { border-radius: 24px; }
  .plinth { bottom: 7px; width: 220px; height: 30px; opacity: .86; }
  .config-aside { display: none; }

  .config-form {
    order: 3;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 0 2px;
    counter-reset: qm-step;
    min-width: 0;
  }

  .brand-grid,
  .type-grid,
  .fit-grid,
  .select-wrap,
  .choice,
  .choice > span { min-width: 0; max-width: 100%; }

  .brand-grid,
  .type-grid,
  .fit-grid { width: 100%; }

  .config-form fieldset {
    margin: 0 0 20px;
    counter-increment: qm-step;
  }

  .config-form legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.25;
  }

  .config-form legend::before {
    content: counter(qm-step);
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
  }

  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .choice > span {
    min-height: 46px;
    padding: 9px 8px;
    border-color: var(--qm-border);
    border-radius: var(--qm-radius-sm);
    background: var(--qm-card);
    box-shadow: inset 0 1px rgba(255,255,255,.9);
  }

  .brand > span { font-size: 9px; }
  .type > span { min-height: 70px; }
  .type b { font-size: 11px; }
  .type small { font-size: 8px; line-height: 1.25; }
  .choice input:checked + span { border-color: #111; box-shadow: inset 0 0 0 1px #111, 0 8px 20px rgba(16,18,16,.08); }
  .choice input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }

  .select-wrap select {
    height: 50px;
    border: 1px solid var(--qm-border);
    border-radius: 12px;
    background-color: var(--qm-card);
    font-size: 13px;
    box-shadow: inset 0 1px rgba(255,255,255,.92);
  }

  .buy-zone {
    position: sticky;
    z-index: 30;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    order: 4;
    width: 100%;
    margin: 2px 0 14px;
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(17,17,17,.12);
    border-radius: var(--qm-radius-md);
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 34px rgba(16,18,16,.16), inset 0 1px rgba(255,255,255,.95);
    backdrop-filter: blur(18px);
  }

  .buy-action { justify-content: space-between; gap: 12px; }
  .buy-action > strong { font-size: 27px; white-space: nowrap; }

  .add-cart {
    min-height: 46px;
    padding: 12px 16px;
    box-shadow: 0 8px 20px rgba(115,94,0,.18);
  }

  .benefits {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 5;
    width: calc(100% + 32px);
    min-height: 0;
    height: auto;
    margin: 0 -16px;
    padding: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid var(--qm-border);
    border-radius: 0 0 28px 28px;
    background: rgba(236,237,234,.74);
  }

  .benefits span {
    min-height: 58px;
    padding: 10px;
    gap: 9px;
    border: 1px solid var(--qm-border);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px rgba(255,255,255,.9);
  }

  .benefits i { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .benefits b { font-size: 9px; line-height: 1.35; white-space: normal; }

  .story,
  .support-intro,
  .support-grid,
  .quat-site footer {
    width: calc(100% - (var(--qm-edge) * 2));
    max-width: calc(100% - (var(--qm-edge) * 2));
  }

  .story {
    margin-top: 16px;
    padding: 46px 22px 42px;
    grid-template-columns: 1fr;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(16,18,16,.12);
  }

  .story h2,
  .support-intro h2 {
    max-width: 11ch;
    font-size: clamp(35px, 10.5vw, 46px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  .story > p,
  .support-intro > p:last-child {
    max-width: 34ch;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
  }

  .support-intro {
    margin-top: 16px;
    padding: 48px 22px 30px;
    border: 1px solid rgba(255,255,255,.72);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
  }

  .support-intro > p:last-child { margin-top: 18px; }

  .support-grid {
    padding: 0 14px 42px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-inline: 1px solid rgba(255,255,255,.72);
  }

  .support-grid article {
    min-height: 180px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.70);
  }

  .support-grid article:first-child {
    min-height: 205px;
    background: linear-gradient(145deg, rgba(255,212,0,.16), rgba(255,255,255,.82));
  }

  .support-grid h3 { margin: 22px 0 8px; font-size: 19px; letter-spacing: -.025em; }
  .support-grid p { max-width: 35ch; font-size: 12px; line-height: 1.6; }
  .support-grid a { margin-top: 24px; font-size: 11px; }

  .quat-site footer {
    margin-bottom: 24px;
    padding: 28px 22px 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.72);
    border-top: 1px solid var(--qm-border);
    border-radius: 0 0 28px 28px;
  }

  .quat-logo-footer img { height: 25px !important; max-width: 108px !important; }
  .quat-site footer p { order: 2; width: 100%; margin: 0; font-size: 10px; line-height: 1.75; }
  .quat-site footer > a:last-child { order: 3; font-size: 12px; }
}

@media (max-width: 420px) {
  :root { --qm-edge: 12px; }
  .quat-site { padding-inline: 8px !important; }
  .quat-config { padding-inline: 14px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .type-grid { grid-template-columns: 1fr; }
  .type > span { min-height: 54px; }
  .benefits { width: calc(100% + 28px); margin-inline: -14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-cart { padding-inline: 13px; font-size: 12px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  :root { --qm-edge: 22px; }
  .quat-site { padding-inline: 22px !important; }
  .quat-config { padding-inline: 28px; }
  .product-stage { height: 350px; }
  .phone { width: 154px; height: 308px; }
  .benefits { width: calc(100% + 56px); margin-inline: -28px; padding-inline: 28px; }
  .story,
  .support-intro { padding-inline: 42px; }
  .support-grid { padding-inline: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .quat-site *, .quat-site *::before, .quat-site *::after { transition: none !important; }
}

@media (max-width: 900px) {
  .product-stage { height: 340px; margin-bottom: 8px; }
  .product-gallery { width: min(100%, 330px); border-radius: 20px; box-shadow: 0 20px 42px rgba(18,20,18,.15); }
  .fit-frame { border-width: 5px; border-radius: 40px; }
  .fit-frame i { left: -7px; width: 2px; height: 30px; box-shadow: 0 42px #252625; }
  .stage-readout { top: 14px; left: 12px; }
  .stage-readout b { font-size: 9px; }
  .stage-readout small { font-size: 7px; }
  .fit-status { left: 12px; bottom: 14px; }
  .phone-shell::before { inset: -7px; border-width: 5px; border-radius: 37px; }
  .screen-demo { gap: 6px; padding: 0 16px 30px; }
  .screen-demo b { font-size: 9px; }
  .screen-demo span { height: 2px; }
  .repair-line { width: 48px; }
  .repair-line.two { width: 34px; }

  .config-aside.material-mockups {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 10px;
  }
  .material-mockups > p { grid-column: 1 / -1; margin: 0 0 2px; }
  .material-mockup {
    min-height: 68px;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 7px;
    padding: 7px;
    border-radius: 11px;
  }
  .material-sample { width: 42px; height: 48px; border-width: 1px; border-radius: 8px; background: #f3f0eb; }
  .material-sample img { object-fit: cover; }
  .material-sample::before { border-radius: 4px; }
  .material-mockup b { font-size: 9px; }
  .material-mockup small { font-size: 7px; }
}

@media (max-width: 420px) {
  .product-stage { height: 330px; }
  .product-gallery { width: min(100%, 310px); }
  .material-mockup {
    min-height: 64px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }
  .material-sample { width: 40px; height: 40px; }
  .material-mockup > span:last-child { align-items: center; }
  .material-mockup small { max-width: 10ch; }
}

@media (prefers-reduced-motion: reduce) {
  .repair-line { animation: none !important; opacity: .45; }
}

@media (max-width: 900px) {
  .config-aside.material-mockups { display: none !important; }
  .config-form legend > b { display: none; }

  .product-stage {
    margin-top: 14px;
    margin-bottom: 22px;
    background: none;
  }

  .product-gallery {
    border-color: rgba(17,17,17,.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(17,17,17,.11), inset 0 1px rgba(255,255,255,.9);
  }

  .stage-readout { top: 20px; left: 20px; }
  .fit-status {
    left: 20px;
    bottom: 20px;
    min-height: 28px;
    padding: 7px 10px;
    border: 1px solid rgba(17,17,17,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 20px rgba(17,17,17,.08);
    backdrop-filter: blur(10px);
  }

  .material-fieldset { margin-top: 4px !important; }
  .material-fieldset .type-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .material-choice > span {
    min-height: 132px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    text-align: center;
  }
  .material-choice > span > img {
    width: clamp(62px, 14vw, 78px);
    height: clamp(62px, 14vw, 78px);
    display: block;
    object-fit: cover;
    border: 1px solid rgba(17,17,17,.1);
    border-radius: 12px;
    background: #f2efea;
  }
  .material-choice > span > span { align-items: center; }
  .material-choice input:checked + span { border-color: #111; background: #111; color: #fff; box-shadow: 0 12px 26px rgba(17,17,17,.18); }
  .material-choice input:checked + span small { color: rgba(255,255,255,.62); }
  .material-choice input:checked + span::after { background: #ffd400; color: #111; }
}

@media (max-width: 420px) {
  .material-fieldset .type-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .material-choice > span { min-height: 116px; padding-inline: 5px; }
  .material-choice > span > img { width: 58px; height: 58px; border-radius: 10px; }
  .material-choice b { font-size: 10px; }
  .material-choice small { font-size: 7px; }
}
