:root {
  --bg: #f3f0ea;
  --bg-soft: #faf7f2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #fffdfa;
  --text: #26231f;
  --muted: #6c665f;
  --line: rgba(38, 35, 31, 0.08);
  --accent: #1f1d1a;
  --accent-soft: #4a443e;
  --warm: #d7c0a0;
  --shadow: 0 18px 46px rgba(33, 28, 24, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 192, 160, 0.26), transparent 26%),
    radial-gradient(circle at top right, rgba(35, 32, 28, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f5f1 0%, #f1eee8 36%, #f7f4ef 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.page-shell {
  min-height: 100vh;
  padding: 20px 12px 32px;
}

.page {
  width: min(100%, 430px);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,252,248,0.98) 100%);
  border: 1px solid rgba(56, 49, 41, 0.08);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(45, 39, 33, 0.12);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
}

.hero-media {
  position: relative;
}

.hero-image {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.06) 0%, rgba(18, 16, 14, 0.10) 36%, rgba(18, 16, 14, 0.44) 100%);
}

.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
  color: #fffdfa;
}

.hero-copy-top {
  top: 18px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.88);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-copy .hero-kicker {
  background: rgba(255, 248, 240, 0.9);
}

.hero h1,
.section-head h2,
.specs-content h3,
.legal-page h1,
.legal-page h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 240px;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 0.96;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.hero-body {
  padding: 22px 18px 12px;
}

.lead,
.story-content p,
.feature-card p,
.review-card p,
.privacy-note,
.footer p,
.legal-page p,
.legal-page li,
.field-note,
.color-card-body span {
  margin: 0;
  line-height: 1.6;
}

.lead {
  font-size: 15px;
  color: var(--text);
}

.variant-panel,
.field-group-select {
  margin-top: 18px;
}

.variant-panel label,
.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}

.variant-select,
.order-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(55, 48, 41, 0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.variant-select:focus,
.order-form input:focus {
  border-color: rgba(35, 31, 27, 0.28);
  box-shadow: 0 0 0 4px rgba(35, 31, 27, 0.06);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 16px;
}

.price-old,
.price-current {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-old {
  color: rgba(38, 35, 31, 0.36);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-current {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  width: 100%;
  color: #fffdf9;
  background: linear-gradient(180deg, #2c2823 0%, #171411 100%);
  box-shadow: 0 14px 26px rgba(24, 20, 17, 0.2);
}

.button-full {
  width: 100%;
}

.sold-count {
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 12px 18px 24px;
}

.section-soft {
  padding-top: 18px;
}

.section-head {
  margin-bottom: 16px;
}

.compact-head {
  margin-bottom: 14px;
}

.center-head {
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.05;
  max-width: 330px;
}

.center-head h2 {
  max-width: none;
}

.story-block,
.specs-card,
.review-card,
.order-form,
.legal-page,
.feature-card,
.color-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,252,248,0.99) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.story-block,
.specs-card {
  overflow: hidden;
}

.story-block-first {
  margin-bottom: 18px;
}

.story-content,
.specs-content,
.review-card,
.order-form {
  padding: 18px;
}

.story-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chips span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #f5f1ea;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
}

.color-showcase {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.color-card {
  padding: 0;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-card:hover,
.color-card:focus-visible {
  transform: translateY(-1px);
}

.color-card.is-active {
  border-color: rgba(28, 24, 20, 0.2);
  box-shadow: 0 18px 36px rgba(33, 28, 24, 0.12);
}

.color-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.color-card-body {
  padding: 14px 16px 16px;
}

.color-card-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.color-card-body span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.feature-flow {
  display: grid;
  gap: 14px;
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card > div {
  padding: 16px 18px 18px;
}

.feature-card h3,
.specs-content h3,
.review-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.specs-content-wide {
  padding-top: 20px;
}

.spec-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(38, 35, 31, 0.08);
}

.spec-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-list span {
  color: var(--muted);
}

.spec-list strong {
  max-width: 48%;
  text-align: right;
}

.reviews-section {
  padding-top: 2px;
}

.reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.review-card {
  min-width: 100%;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2ede5;
  color: var(--accent);
  font-weight: 700;
}

.review-meta {
  font-size: 13px;
  color: var(--muted);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(38, 35, 31, 0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(24, 20, 17, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.carousel-arrow-prev span {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.carousel-arrow-next span {
  transform: rotate(45deg);
  margin-right: 4px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 35, 31, 0.18);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.is-active {
  width: 24px;
  background: var(--accent);
}

.order-section {
  padding-top: 8px;
}

.field-group {
  margin-bottom: 14px;
}

.field-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.field-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #a13d3d;
}

.is-invalid {
  border-color: rgba(161, 61, 61, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(161, 61, 61, 0.08) !important;
}

.privacy-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.form-success {
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--accent-soft);
}

.footer {
  width: min(100%, 430px);
  margin: 18px auto 0;
  padding: 0 12px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-title {
  font-weight: 700;
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0;
}

.footer a,
.back-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-note {
  max-width: 320px;
  margin: 0 auto;
}

.legal-body {
  background: linear-gradient(180deg, #f7f4ef 0%, #f1eee8 100%);
}

.legal-page {
  width: min(100% - 24px, 760px);
  margin: 20px auto;
  padding: 24px 20px;
}

.legal-page h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 20px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 24px 0 10px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 600;
}

@media (max-width: 370px) {
  .page-shell {
    padding-inline: 8px;
  }

  .hero h1 {
    max-width: 210px;
    font-size: 28px;
  }

  .price-old,
  .price-current {
    font-size: 24px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .reviews-carousel {
    grid-template-columns: 38px 1fr 38px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
}
