:root {
  --bg: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --black: #000000;
  --danger: #b42318;
  --radius: 22px;
  --nav: 52px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --max: 1120px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.cart-open,
body.light-open { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }

.logo {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.88;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.nav-quiet {
  opacity: 0.55;
  font-weight: 500;
}
.nav-links a.nav-quiet:hover { opacity: 0.9; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn, .menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 10px;
  color: var(--ink);
}
.icon-btn:hover, .menu-btn:hover { background: rgba(0, 0, 0, 0.05); }
.menu-btn { display: none; }

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}
.badge[data-empty="true"] { display: none; }

.menu {
  position: sticky;
  top: var(--nav);
  z-index: 29;
  background: rgba(251, 251, 253, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: grid;
  padding: 8px 22px 18px;
}
.menu a {
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.menu a:hover { text-decoration: none; }

.hero {
  padding: 42px 22px 28px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
}
.eyebrow img {
  display: block;
  height: 27px;
  width: auto;
}
.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.lead {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.38;
  color: var(--muted);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.hero-photo {
  width: min(1100px, calc(100% - 32px));
  margin: 36px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background: #e6e6ea;
}
.hero-photo img { width: 100%; height: auto; }
.price-from {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.price-from b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn, .text-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 980px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; width: 100%; }
.btn-dark:hover { background: #333; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 0;
  min-height: 0;
  border-radius: 0;
}
.btn-line {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px auto 0;
  max-width: 860px;
  padding: 0 22px 10px;
}
.chips span {
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #424245;
}

.section {
  padding: 88px 22px;
}
.section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.sub {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}
.narrow { max-width: var(--max); margin: 0 auto; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 22px 40px;
}
.pillar {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  min-height: 220px;
}
.pillar h3 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.pillar p { margin: 0; color: var(--muted); }

.chapter {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 22px;
}
.chapter.reverse { grid-template-columns: 1.2fr minmax(280px, 0.9fr); }
.chapter.reverse .chapter-copy { order: 2; }
.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.chapter h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.chapter p { margin: 16px 0 0; color: var(--muted); font-size: 19px; }
.chapter-shot {
  margin: 0;
  background: #e8e8ec;
  border-radius: 28px;
  overflow: hidden;
}
.chapter-shot img { width: 100%; height: auto; }
.chapter.dark {
  max-width: none;
  background: #000;
  color: #f5f5f7;
  padding: 88px 22px;
  grid-template-columns: minmax(280px, 520px) minmax(280px, 720px);
  justify-content: center;
}
.chapter.dark p { color: #a1a1a6; }
.chapter.dark .kicker { color: #2997ff; }
.band {
  background: #000;
  color: #f5f5f7;
  text-align: center;
  padding: 100px 22px;
}
.band h2 {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.gift-nav { display: none !important; }

.gallery-head {
  max-width: 1120px;
  margin: 0 auto 22px;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.gallery-head h2 { margin: 0; }
.gallery-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.gallery-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
}
.gallery-nav button:hover { background: #e8e8ed; }
.gallery-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-viewport {
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  container-type: inline-size;
  container-name: gallery;
}
.gallery-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.slide {
  margin: 0;
  min-width: 0;
  flex: 0 0 calc((100cqi - 36px) / 3);
}
.slide button {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  background: #e6e6ea;
  border-radius: 24px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4px 0;
  font-size: 14px;
}
.slide figcaption b { font-weight: 600; }
.slide figcaption span { color: var(--muted); }
.gallery-count {
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.promo-section { padding-top: 24px; padding-bottom: 40px; }
.promo-card {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(135deg, #111 0%, #2c2c2e 55%, #1d1d1f 100%);
  color: #f5f5f7;
  border-radius: 28px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.promo-card .kicker { color: #7cbcff; }
.promo-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
.promo-card p { margin: 12px 0 0; color: #a1a1a6; font-size: 17px; max-width: 36ch; }
.promo-code-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.promo-code {
  display: block;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.04em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 16px 18px;
}
.promo-code-block .btn-line {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.promo-code-block .btn-line:hover { background: rgba(255, 255, 255, 0.08); }

.service-block {
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.check-row strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.check-row em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.install-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.promo-ok {
  display: block;
  color: #248a3d;
  font-size: 13px;
  margin-top: 4px;
}
.line.discount span:last-child { color: #248a3d; }

.buy {
  background: #fff;
  border-radius: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px 36px;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.size-card {
  text-align: left;
  background: var(--bg);
  border: 0;
  border-radius: 18px;
  padding: 18px 16px 16px;
  cursor: pointer;
  min-height: 168px;
  position: relative;
  box-shadow: inset 0 0 0 1px transparent;
}
.size-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.size-card em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}
.size-card .size-price {
  display: block;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.size-card[aria-pressed="true"] {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.buy-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 22px;
  align-items: start;
}
.buy-panel {
  background: var(--bg);
  border-radius: 20px;
  padding: 22px;
}
.buy-panel .sum-label { margin: 0; color: var(--muted); font-size: 14px; }
.buy-panel .sum-size { margin: 6px 0 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.buy-panel .sum-money {
  margin: 4px 0 16px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.kit { margin: 0; padding: 0; list-style: none; }
.kit li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.kit li:last-child { border-bottom: 0; }

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.addon {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.addon-photo {
  appearance: none;
  border: 0;
  padding: 0;
  background: #ececef;
  cursor: zoom-in;
  height: 220px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 0;
}
.addon-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.addon-body {
  position: relative;
  z-index: 1;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.addon-body h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.addon-body p { margin: 0; color: var(--muted); font-size: 15px; }
.addon-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.addon-meta b { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--ink); }
.addon-meta span { display: block; color: var(--soft); font-size: 12px; font-weight: 400; }
.hint { color: var(--blue) !important; font-size: 13px !important; }
.hint:empty { display: none; }

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border-radius: 999px;
  height: 44px;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}
.stepper button:hover { background: rgba(0, 0, 0, 0.05); }
.stepper span {
  min-width: 4.8em;
  padding: 0 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 28px;
}
.spec {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.spec span { color: var(--muted); }

.compare {
  margin-top: 36px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare-row.head {
  border-top: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.compare-row b { font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.step {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  min-height: 150px;
}
.step i {
  display: block;
  font-style: normal;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
.step strong { display: block; margin-bottom: 6px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.review {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  margin: 0;
}
.review p { margin: 0; font-size: 16px; }
.review footer { margin-top: 16px; color: var(--muted); font-size: 14px; }

.faq { max-width: 820px; margin: 22px auto 0; }
.faq details {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: #424245; }
.faq ul { margin: 0 0 16px; padding-left: 18px; color: #424245; }
.faq li { margin: 6px 0; }

.order-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: start;
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.lines { display: grid; gap: 10px; margin: 16px 0; }
.line, .total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.line small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.line span:last-child, .total-row span:last-child { white-space: nowrap; }
.muted { color: var(--muted); }
.total-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 20px;
  font-weight: 600;
}
.delivery-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 8px 0 16px;
}
.delivery-card b { display: block; font-size: 20px; letter-spacing: -0.03em; margin-top: 4px; }
.city-field { position: relative; }
.city-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 18px);
  z-index: 8;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.city-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.city-suggest button:hover,
.city-suggest button:focus {
  background: rgba(0, 113, 227, 0.08);
  outline: none;
}
.city-suggest button small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.gift-page .city-suggest {
  background: #1c1c1e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.gift-page .city-suggest button {
  color: #f5f5f7;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.gift-page .city-suggest button:hover,
.gift-page .city-suggest button:focus {
  background: rgba(41, 151, 255, 0.16);
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--danger);
}
.field-error { min-height: 1.1em; color: var(--danger); font-size: 13px; }
.empty-note { color: var(--muted); margin: 12px 0; }

.done { text-align: left; }
.done h3 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 8px; }
.order-text {
  white-space: pre-wrap;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.cart-root[hidden], .lightbox[hidden], .menu[hidden], #done[hidden], .stepper[hidden], .btn[hidden] { display: none !important; }

.cart-root {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  padding: 0;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer header, .lightbox header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer header h2, .lightbox header h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.drawer .lines { padding: 8px 18px; overflow: auto; }
.drawer footer { margin-top: auto; padding: 16px 18px 22px; border-top: 1px solid var(--line); }
.drawer .line small { font-size: 12px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lightbox header { border-bottom-color: rgba(255,255,255,.12); }
.lightbox header h2 { color: #fff; font-size: 16px; font-weight: 500; }
.lightbox .icon-btn { color: #fff; }
.light-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 0;
}
.light-stage img {
  max-height: calc(100vh - 150px);
  max-width: min(1100px, 86vw);
  margin: 0 auto;
  object-fit: contain;
}
.light-stage .nav-arrow {
  width: 48px;
  height: 48px;
  margin: 0 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.light-cap { text-align: center; padding: 8px 16px 20px; color: #d2d2d7; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  top: 64px;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast button {
  background: transparent;
  border: 0;
  color: #7cbcff;
  cursor: pointer;
  font-weight: 600;
}

.buybar {
  display: none;
}
.buybar.is-hidden { display: none !important; }

.footer {
  padding: 28px 22px 48px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.footer a { color: var(--muted); }

.legal {
  padding: 48px 22px 24px;
  max-width: 820px;
}
.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 600;
}
.legal-meta {
  margin: 0 0 28px;
  color: var(--soft);
  font-size: 14px;
}
.legal-card {
  background: var(--paper);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p,
.legal-card li {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.legal-card ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--muted);
}
.legal-card a { color: var(--blue); }
.legal-card dl {
  margin: 0 0 16px;
}
.legal-card dt {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.legal-card dt:first-child { margin-top: 0; }
.legal-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 18px 18px 18px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.cookie-banner-copy {
  min-width: 0;
}
.cookie-banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.cookie-banner-copy p + p { margin-top: 6px; }
.cookie-banner-copy strong {
  color: var(--ink);
  font-size: 15px;
}
.cookie-banner-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.gift-page .cookie-banner-inner {
  background: rgba(28, 28, 30, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.gift-page .cookie-banner-copy strong { color: #f5f5f7; }
.gift-page .cookie-banner-copy p { color: #a1a1a6; }
.gift-page .cookie-banner-copy a { color: #6eb6ff; }

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
  .cookie-banner-btn { width: 100%; }
}

@media (max-width: 980px) {
  .size-grid, .addon-grid, .reviews, .steps, .pillars { grid-template-columns: 1fr 1fr; }
  .chapter, .chapter.reverse, .chapter.dark, .buy-row, .order-wrap, .specs { grid-template-columns: 1fr; }
  .chapter.reverse .chapter-copy { order: 0; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .promo-card { grid-template-columns: 1fr; padding: 28px; }
  .slide { flex-basis: calc((100cqi - 18px) / 2); }
}

@media (max-width: 700px) {
  .slide { flex-basis: 100cqi; }
  .slide button { aspect-ratio: 3 / 2; }
  .slide figcaption { flex-direction: column; align-items: flex-start; }
  .install-schedule { grid-template-columns: 1fr; }
  .addon-photo { height: 200px; }
  .addon-body { padding-top: 20px; }
  .size-grid, .addon-grid, .reviews, .steps, .pillars, .compare-row { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
  .hero { padding-top: 28px; }
  .lead { font-size: 18px; }
  .buy { padding: 32px 16px; border-radius: 24px; }
  .buybar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 8px 8px 8px 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  }
  .buybar b { display: block; font-variant-numeric: tabular-nums; }
  .buybar span { color: var(--muted); font-size: 12px; }
  body { padding-bottom: 84px; }
  body.cart-open .buybar, body.light-open .buybar { display: none; }
  .toast { top: 64px; width: max-content; max-width: calc(100% - 24px); }
}

/* Gift certificate page — dark */
.gift-page {
  --bg: #0b0b0c;
  --paper: #161618;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --soft: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(120, 140, 180, 0.16), transparent 55%),
    #0b0b0c;
  color: var(--ink);
}
.gift-page .buybar { display: none !important; }
.gift-page .nav {
  background: rgba(11, 11, 12, 0.72);
  border-bottom-color: transparent;
}
.gift-page .nav.scrolled { border-bottom-color: var(--line); }
.gift-page .logo { color: #f5f5f7; }
.gift-page .nav-links a { color: #f5f5f7; }
.gift-page .menu-btn { color: #f5f5f7; }
.gift-page .menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.gift-page .menu {
  background: rgba(18, 18, 20, 0.96);
  border-bottom-color: var(--line);
}
.gift-page .menu a { color: #f5f5f7; border-bottom-color: var(--line); }
.gift-page .card {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gift-page .field input,
.gift-page .field textarea,
.gift-page .field select {
  background: #0f0f11;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.gift-page .field input:focus,
.gift-page .field textarea:focus,
.gift-page .field select:focus {
  background: #121214;
  box-shadow: inset 0 0 0 2px #2997ff;
}
.gift-page .size-card {
  background: #0f0f11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.gift-page .size-card[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #f5f5f7;
  background: #1c1c1e;
}
.gift-page .size-card .tag {
  background: rgba(41, 151, 255, 0.18);
  color: #6eb6ff;
}
.gift-page .check-row em,
.gift-page .fine,
.gift-page .sub,
.gift-page .lead { color: var(--muted); }
.gift-page .btn-ghost { color: #6eb6ff; }
.gift-page .btn-line {
  background: transparent;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.gift-page .btn-dark {
  background: #f5f5f7;
  color: #0b0b0c;
}
.gift-page .btn-dark:hover { background: #fff; }
.gift-page .order-text {
  background: #0f0f11;
  color: #d2d2d7;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gift-page .delivery-card {
  background: #0f0f11;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gift-page .footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.gift-page .footer a { color: #a1a1a6; }
.gift-page .toast {
  background: #1c1c1e;
  color: #f5f5f7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.gift-page .service-block {
  background: #0f0f11;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gift-page .kicker { color: #6eb6ff; }

.gift-hero {
  text-align: center;
  padding: 56px 22px 40px;
  max-width: 820px;
  margin: 0 auto;
}
.gift-mark {
  height: 40px;
  width: auto;
}
.gift-hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #f5f5f7;
}
.gift-compose {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  max-width: 1120px;
}
.gift-form { padding: 28px; }
.gift-fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
.gift-fieldset legend {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}
.field-label {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 15px;
  color: #f5f5f7;
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #0f0f11;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.choice:has(input:checked) {
  background: #1c1c1e;
  box-shadow: inset 0 0 0 2px #f5f5f7;
}
.choice input { margin-top: 3px; accent-color: #2997ff; }
.choice strong { display: block; font-size: 15px; letter-spacing: -0.02em; color: #f5f5f7; }
.choice em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.medium-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.medium-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.medium-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #0f0f11;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.medium-option input {
  margin-top: 3px;
  accent-color: #2997ff;
  flex-shrink: 0;
}
.medium-option:has(input:checked) {
  background: #1c1c1e;
  box-shadow: inset 0 0 0 2px #f5f5f7;
}
.medium-option strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}
.medium-option em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.medium-preview {
  border-radius: 18px;
  overflow: hidden;
  background: #101012;
  min-height: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.medium-preview img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.medium-preview-cert {
  height: 100%;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 28px;
  background:
    radial-gradient(500px 220px at 20% 0%, rgba(120, 140, 180, 0.22), transparent 60%),
    linear-gradient(160deg, #242428 0%, #101012 100%);
  color: #f5f5f7;
}
.medium-preview-cert span {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
}
.medium-preview-cert strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.medium-preview-cert em {
  font-style: normal;
  color: #a1a1a6;
  font-size: 14px;
}
.medium-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.amount-card {
  appearance: none;
  border: 0;
  background: #0f0f11;
  color: #f5f5f7;
  border-radius: 14px;
  min-height: 56px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.amount-card[aria-pressed="true"] {
  background: #1c1c1e;
  box-shadow: inset 0 0 0 2px #f5f5f7;
}
.gift-sizes {
  margin: 0 0 16px;
  grid-template-columns: 1fr 1fr;
}
.gift-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gift-summary { padding: 24px; }
.sticky-card {
  position: sticky;
  top: calc(var(--nav) + 16px);
}
.cert-cover {
  background:
    radial-gradient(520px 240px at 15% 0%, rgba(120, 140, 180, 0.22), transparent 55%),
    linear-gradient(165deg, #2a2a2e 0%, #101012 70%);
  color: #f5f5f7;
  border-radius: 22px;
  padding: 24px 22px 20px;
  margin: 14px 0 18px;
  min-height: 220px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  align-content: start;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.cert-cover::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cert-cover-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 16px;
}
.cert-cover-label {
  margin: 18px 0 0;
  color: #a1a1a6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cert-cover-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
}
.cert-cover-wish {
  margin: 4px 0 0;
  color: #d2d2d7;
  font-size: 15px;
  white-space: pre-line;
  min-height: 2.8em;
}
.cert-cover-meta {
  margin: 16px 0 0;
  color: #86868b;
  font-size: 13px;
}
.cert-cover--print {
  max-width: 560px;
  margin: 22px 0;
  min-height: 320px;
  padding: 36px 32px 28px;
}
.cert-cover-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}
.cert-cover-footer span {
  display: block;
  color: #86868b;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cert-cover-footer strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
  font-weight: 600;
  word-break: break-all;
}
.gift-done { margin-top: 28px; max-width: 820px; }
.gift-activate { max-width: 640px; margin-top: 28px; }
.gift-activate-section {
  background: transparent;
}

@media (max-width: 980px) {
  .gift-compose,
  .choice-row,
  .gift-people,
  .medium-layout { grid-template-columns: 1fr; }
  .gift-sizes { grid-template-columns: 1fr 1fr; }
  .sticky-card { position: static; }
}

@media (max-width: 700px) {
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .gift-sizes { grid-template-columns: 1fr; }
  .gift-page { padding-bottom: 0; }
}

@media print {
  body.printing-cert * { visibility: hidden !important; }
  body.printing-cert #gift-print-sheet,
  body.printing-cert #gift-print-sheet * {
    visibility: visible !important;
  }
  body.printing-cert #gift-print-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 90vh;
    border-radius: 0;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
  .gallery-track { transition: none; }
}
