:root {
  --page: #eee9e4;
  --surface: #fffdfb;
  --surface-soft: #f7f2ee;
  --ink: #272624;
  --muted: #746d67;
  --line: rgba(41, 38, 35, 0.12);
  --accent: #9c6a72;
  --accent-dark: #272624;
  --error: #9f2f3c;
  --shadow: 0 22px 70px rgba(42, 37, 33, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #f9f6f3 0, var(--page) 42%, #e8e1da 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.site-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdfb 0%, #f1ece6 48%, #e8e1da 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(40, 34, 29, 0.04), 0 28px 90px rgba(40, 34, 29, 0.16);
}
.hero { padding: 14px 14px 28px; }
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  min-height: 430px;
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(28,25,22,0.58) 100%);
  pointer-events: none;
}
.hero-title-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 18px 18px 17px;
  border-radius: 24px;
  background: rgba(30, 28, 26, 0.72);
  color: #fff;
  backdrop-filter: blur(12px);
}
.hero-title-card span,
.section-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 760;
}
.hero-title-card span { color: #dcc9c8; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; line-height: 0.98; letter-spacing: -0.055em; }
.hero-content { padding: 24px 8px 0; text-align: center; }
.hero-lead {
  margin: 0 auto 18px;
  max-width: 360px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}
.price-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 13px;
}
.old-price, .new-price { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.old-price { color: rgba(39,38,36,0.34); text-decoration: line-through; text-decoration-thickness: 2px; }
.new-price { color: var(--ink); }
.micro-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.micro-facts span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(156, 106, 114, 0.09);
  color: #5e4b4c;
  font-size: 12px;
  font-weight: 650;
}
.order-link, .submit-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 34px rgba(39,38,36,0.20);
  cursor: pointer;
}
.order-link { max-width: 310px; }
.submit-btn:disabled { opacity: .72; cursor: wait; }
.sold-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.color-section, .product-card, .review-section, .order-section { margin: 0 14px 22px; }
.color-section {
  padding: 18px 0 4px;
}
.color-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 1px 10px;
  scrollbar-width: none;
}
.color-strip::-webkit-scrollbar { display: none; }
.color-chip {
  flex: 0 0 82px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  border-radius: 18px;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
}
.color-chip.is-active { border-color: rgba(39,38,36,0.42); background: #fff; }
.color-chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
  background: #fff;
}
.color-chip span { display: block; padding-top: 6px; font-size: 11px; line-height: 1.1; }
.product-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(40,34,29,0.06);
}
.product-main-image {
  width: 100%;
  aspect-ratio: 1 / .93;
  object-fit: cover;
  background: #fff;
}
.product-copy { padding: 23px 21px 24px; }
h2 { font-size: 27px; line-height: 1.05; letter-spacing: -0.045em; margin-bottom: 14px; }
.product-copy p, .order-intro p { color: var(--muted); font-size: 15px; line-height: 1.62; margin-bottom: 12px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 17px;
}
.spec-grid div {
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(40,34,29,0.06);
}
.spec-grid strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.spec-grid span { color: var(--muted); font-size: 12px; }
.section-head { text-align: center; padding: 8px 10px 14px; }
.review-carousel {
  border-radius: 28px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(40,34,29,0.08);
  padding: 12px;
  box-shadow: 0 18px 45px rgba(42,37,33,0.08);
}
.review-window { overflow: hidden; border-radius: 22px; }
.review-track { display: flex; transition: transform .36s ease; }
.review-slide {
  flex: 0 0 100%;
  min-height: 188px;
  padding: 18px;
  background: #fffdfb;
}
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.review-head img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.review-head strong { display: block; font-size: 16px; }
.review-head span { color: var(--muted); font-size: 12px; }
.review-slide p { color: #4c4742; font-size: 15px; line-height: 1.6; margin: 0; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 3px 0; }
.carousel-controls button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 23px; line-height: 1; cursor: pointer; }
.dots { display: flex; justify-content: center; gap: 6px; flex: 1; }
.dots button { width: 7px; height: 7px; border: 0; padding: 0; background: rgba(39,38,36,.22); }
.dots button.is-active { width: 18px; border-radius: 999px; background: var(--ink); }
.order-section {
  padding: 27px 18px 20px;
  border-radius: 32px;
  background: #fffdfb;
  border: 1px solid rgba(40,34,29,0.08);
  box-shadow: var(--shadow);
}
.order-intro { text-align: center; margin-bottom: 18px; }
.order-intro h2 { margin-bottom: 10px; }
.order-form { display: grid; gap: 13px; }
.field-group { display: grid; gap: 7px; }
.field-group label { font-size: 13px; color: #4b4640; font-weight: 730; }
.field-group input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(40,34,29,0.15);
  border-radius: 18px;
  padding: 0 15px;
  background: #f9f6f3;
  color: var(--ink);
  outline: none;
}
.field-group input:focus { border-color: rgba(39,38,36,0.46); background: #fff; }
.field-group.has-error input { border-color: rgba(159,47,60,.58); background: #fff7f7; }
.field-error { min-height: 16px; margin: 0; color: var(--error); font-size: 12px; line-height: 1.3; }
.policy-note { margin: -1px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.form-success { margin: 0; min-height: 18px; color: var(--error); text-align: center; font-size: 12px; }
.footer {
  padding: 28px 22px 34px;
  color: #6f6861;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.footer h3 { font-size: 12px; letter-spacing: .11em; margin-bottom: 10px; color: #3a3632; }
.footer p { margin-bottom: 12px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-bottom: 12px; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(111,104,97,0.28); }
.registry { opacity: .9; }
.legal-body { background: var(--page); }
.legal-page { width: min(100% - 28px, 430px); margin: 18px auto; padding: 25px 21px; background: #fffdfb; border-radius: 26px; color: var(--ink); line-height: 1.62; box-shadow: var(--shadow); }
.legal-page h1 { font-size: 30px; margin: 10px 0 18px; }
.legal-page h2 { font-size: 19px; margin: 22px 0 8px; letter-spacing: -0.02em; }
.legal-page p { color: var(--muted); }
.back-link { text-decoration: none; color: var(--accent); font-weight: 700; font-size: 13px; }
@media (min-width: 760px) { body { padding: 22px 0; } .site-shell { border-radius: 34px; } }


body.is-locked { overflow: hidden; }
.color-stage {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
}
.color-stage-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(65,57,53,0.08);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 18px 30px rgba(63,49,42,0.08);
}
.color-viewport,
.zoom-frame {
  width: 100%;
  border: 0;
  background: #f4f1ec;
  border-radius: 22px;
  padding: 10px;
  margin: 0;
  cursor: zoom-in;
}
.color-viewport img,
.zoom-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.color-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 4px 2px;
}
.color-stage-meta strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.color-stage-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 220px;
}
.color-stage-counter {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
}
.gallery-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(65,57,53,0.1);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(63,49,42,0.08);
}
.gallery-nav:active { transform: scale(0.98); }
.color-strip { align-items: stretch; }
.color-chip { min-width: 88px; }
.color-lightbox[hidden] { display: none; }
.color-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(31,24,20,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.color-lightbox-dialog {
  width: min(100%, 520px);
  background: #fffdfb;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.color-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 10px;
}
.color-lightbox-top strong {
  font-size: 16px;
  color: var(--ink);
}
.color-lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(65,57,53,0.1);
  background: #ffffff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.color-lightbox-figure {
  margin: 0;
  background: #f4f1ec;
  border-radius: 22px;
  padding: 14px;
}
.color-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}
@media (max-width: 520px) {
  .color-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; }
  .gallery-nav { width: 36px; height: 36px; font-size: 20px; }
  .color-stage-card { padding: 10px; border-radius: 24px; }
  .color-stage-meta { flex-direction: column; align-items: flex-start; }
  .color-stage-counter { padding-top: 0; }
  .color-stage-meta span { max-width: none; }
}
