:root {
  --ink: #112033;
  --muted: #5c6878;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #eef6f6;
  --soft-2: #f7f3ea;
  --teal: #1d7c78;
  --teal-dark: #0f5b58;
  --amber: #c77a24;
  --navy: #162b46;
  --green: #2c8a55;
  --danger: #a43c32;
  --shadow: 0 18px 60px rgba(17, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 48px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #22344b;
  font-weight: 750;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--teal);
}

.header-actions,
.hero-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.cart-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  padding: 12px 18px;
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 28px rgba(29, 124, 120, 0.22);
}

.primary-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.primary-btn.full {
  width: 100%;
}

.secondary-btn {
  padding: 12px 18px;
  background: var(--ink);
  color: white;
}

.secondary-btn:hover {
  background: #243850;
  transform: translateY(-1px);
}

.secondary-btn:disabled,
.primary-btn:disabled,
.text-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.ghost-btn {
  padding: 11px 15px;
  background: #edf6f5;
  color: var(--teal-dark);
}

.ghost-btn:hover {
  background: #dcefee;
}

.cart-btn,
.icon-btn {
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: white;
  position: relative;
}

.cart-btn span {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: white;
  font-size: 12px;
  line-height: 21px;
}

.icon-btn {
  background: #eef2f6;
  color: var(--ink);
}

.text-btn {
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
}

.text-btn:hover {
  background: #edf6f5;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, calc(100svh - 220px), 620px);
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 84% 42%, rgba(244, 183, 115, 0.22), transparent 34%),
    linear-gradient(90deg, #091827 0%, #102940 58%, #132b40 100%);
  color: white;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(54vw, 760px);
  background: url("assets/resmed-hero-bedside.jpg") center bottom / contain no-repeat;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(720px, 46vw);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(36px, 4.45vw, 56px);
  line-height: 1.04;
  word-break: keep-all;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 22px;
  color: #354457;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.62;
}

.hero .eyebrow {
  color: #9be0dc;
}

.hero h1 {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero .hero-lede {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.26);
}

.hero .secondary-btn {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.hero .secondary-btn:hover {
  background: white;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

.hero-proof strong {
  color: white;
  font-size: 16px;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading.compact {
  max-width: 720px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--ink);
  color: white;
}

.intro-band div {
  display: grid;
  gap: 7px;
  padding: 6px 0;
}

.intro-band span {
  color: rgba(255, 255, 255, 0.78);
}

.visual-story {
  background: #fbfcfd;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) repeat(2, minmax(0, 0.92fr));
  grid-template-rows: repeat(2, clamp(230px, 24vw, 300px));
  gap: 16px;
}

.story-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2f4;
  box-shadow: 0 12px 34px rgba(17, 32, 51, 0.08);
}

.story-card:nth-child(1) {
  grid-row: span 2;
}

.story-card:nth-child(4) {
  grid-column: span 2;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(17, 32, 51, 0.82);
  color: white;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 28px rgba(17, 32, 51, 0.06);
}

.product-media {
  position: relative;
  height: clamp(430px, 35vw, 620px);
  background: white;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.stock {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf6ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.product-top h3 {
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.08;
}

.product-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-type-line {
  margin: 6px 0 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.price {
  min-width: max-content;
  color: var(--teal-dark);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 950;
}

.chips,
.included-list,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li,
.included-list li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6f6;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: #314156;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gift-band {
  background: var(--soft-2);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gift-grid article {
  min-height: 192px;
  padding: 22px;
  border: 1px solid rgba(199, 122, 36, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.gift-grid svg {
  width: 28px;
  height: 28px;
  color: var(--amber);
}

.gift-grid p,
.service-list p,
.compare-panel p,
.faq-list p,
.medical-note p {
  color: var(--muted);
  line-height: 1.65;
}

.service-section {
  background: #fbfcfd;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list div {
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.service-list span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.compare-section {
  background: var(--soft);
}

.selector {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(29, 124, 120, 0.24);
  border-radius: 8px;
  background: white;
}

.selector-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.selector-tab.is-active {
  background: var(--teal);
  color: white;
}

.compare-panel {
  max-width: 900px;
  padding: 28px;
  border: 1px solid rgba(29, 124, 120, 0.2);
  border-radius: 8px;
  background: white;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.faq-category {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 950;
}

.faq-category:first-child {
  margin-top: 0;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  line-height: 1.45;
  font-weight: 900;
}

.faq-list p {
  padding: 0 20px 14px;
  margin-bottom: 0;
}

.faq-list ol,
.faq-list ul {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px 42px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list li {
  padding-left: 2px;
}

.medical-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 clamp(18px, 5vw, 72px) 64px;
  padding: 18px;
  border: 1px solid rgba(164, 60, 50, 0.24);
  border-radius: 8px;
  background: #fff7f4;
}

.medical-note svg {
  flex: 0 0 auto;
  color: var(--danger);
}

.medical-note p {
  margin: 0;
  color: #6e3d35;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 32, 51, 0.46);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 440px);
  height: 100%;
  background: white;
  box-shadow: -24px 0 60px rgba(17, 32, 51, 0.18);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.cart-items {
  overflow: auto;
  padding: 20px 24px;
}

.empty-cart {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 86px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fbfc;
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.cart-item p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: white;
  color: var(--ink);
  font-size: 18px;
}

.qty-controls span {
  min-width: 34px;
  text-align: center;
  font-weight: 900;
}

.cart-summary {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
}

.cart-summary p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-dialog {
  width: min(92vw, 780px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(17, 32, 51, 0.5);
}

.checkout-form {
  min-width: 0;
  padding: 26px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-size: 31px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid > * {
  min-width: 0;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #29394d;
  font-weight: 850;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(29, 124, 120, 0.28);
  border-color: var(--teal);
}

.payment-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-field legend {
  padding: 0 6px;
  color: #29394d;
  font-weight: 900;
}

.payment-option {
  display: block;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.payment-option input:checked + span {
  border-color: var(--teal);
  background: #edf6f5;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.payment-option input:disabled + span {
  cursor: not-allowed;
  opacity: 0.48;
}

.payment-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 190px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(29, 124, 120, 0.24);
  border-radius: 8px;
  background: #f4fbfa;
}

.payment-qr[hidden] {
  display: none;
}

.payment-qr strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 18px;
}

.payment-qr p {
  margin-bottom: 8px;
  color: #314156;
  line-height: 1.55;
}

.payment-qr small {
  color: var(--muted);
  font-weight: 800;
}

.payment-qr img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.order-preview {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.checkout-form .dialog-actions {
  position: sticky;
  bottom: -26px;
  z-index: 1;
  justify-content: flex-end;
  margin: 18px -26px -26px;
  padding: 14px 26px 20px;
  border-top: 1px solid var(--line);
  background: white;
}

.order-preview strong {
  color: var(--ink);
}

.support-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #15a36d;
  color: white;
  box-shadow: 0 16px 34px rgba(21, 163, 109, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-chat-btn:hover {
  background: #0c8d5b;
  box-shadow: 0 18px 38px rgba(21, 163, 109, 0.36);
  transform: translateY(-2px);
}

.support-chat-btn svg {
  width: 25px;
  height: 25px;
}

.support-dialog {
  width: min(88vw, 430px);
  border: 0;
  border-radius: 8px;
  padding: 46px 18px 18px;
  background: white;
  box-shadow: var(--shadow);
}

.support-dialog[open] {
  display: grid;
  place-items: center;
}

.support-dialog::backdrop {
  background: rgba(17, 32, 51, 0.54);
}

.support-dialog img {
  width: min(76vw, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

.support-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1060px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .product-grid,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-grid,
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-strip {
    gap: 10px;
    justify-content: flex-start;
    font-size: 12px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-mark {
    width: 66px;
    height: 42px;
    font-size: 11px;
  }

  .brand small,
  .ghost-btn {
    display: none;
  }

  .cart-btn,
  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 570px;
    padding: 42px 16px 34px;
    background:
      linear-gradient(90deg, rgba(10, 24, 39, 0.88) 0%, rgba(10, 24, 39, 0.72) 36%, rgba(10, 24, 39, 0.22) 68%),
      linear-gradient(0deg, rgba(10, 24, 39, 0.22), rgba(10, 24, 39, 0.04)),
      url("assets/resmed-hero-bedside.jpg") 58% center / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .product-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .text-btn {
    width: 100%;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    min-height: 48px;
    padding: 10px;
    font-size: 14px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .section {
    padding: 48px 16px;
  }

  .product-top {
    display: grid;
  }

  .price {
    font-size: 32px;
  }

  .product-media,
  .product-media img {
    min-height: 240px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(238px, 1fr);
  }

  .story-card:nth-child(1),
  .story-card:nth-child(4),
  .story-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gift-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .selector {
    width: 100%;
  }

  .selector-tab {
    flex: 1;
    padding: 0 10px;
  }

  .compare-panel {
    padding: 20px;
  }

  .medical-note {
    margin: 0 16px 44px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .payment-field {
    grid-template-columns: 1fr;
  }

  .payment-qr {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    padding: 20px;
  }

  .checkout-form .dialog-actions {
    bottom: -20px;
    margin: 18px -20px -20px;
    padding: 14px 20px 18px;
  }

  .support-chat-btn {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .support-dialog {
    width: calc(100vw - 28px);
    padding: 44px 14px 14px;
  }

  .support-dialog img {
    width: min(82vw, 340px);
  }
}

@media (max-width: 420px) {
  .top-strip span {
    max-width: 100%;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero {
    min-height: 590px;
  }
}
