:root {
  --bg: #e9e7e1;
  --panel: #f8f6f1;
  --panel-strong: #ffffff;
  --text: #262622;
  --muted: #747166;
  --soft: #aaa498;
  --line: rgba(46, 44, 38, 0.10);
  --deep: #1c1c1a;
  --accent: #74654f;
  --accent-dark: #40382d;
  --accent-soft: rgba(116, 101, 79, 0.12);
  --shadow: 0 22px 70px rgba(28, 28, 26, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.92), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #f4f3ef 0%, var(--bg) 38%, #d9d4ca 100%);
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 440px);
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.45) 100%),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.52), 0 28px 90px rgba(21, 19, 16, .18);
  overflow: hidden;
}

.page {
  padding: 14px 12px 0;
}

.hero {
  padding: 0 0 26px;
}

.hero-image-wrap {
  position: relative;
  min-height: 372px;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: #dedbd3;
  box-shadow: var(--shadow);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.28) 100%),
    radial-gradient(circle at 18% 92%, rgba(255,255,255,.55), rgba(255,255,255,0) 38%);
}

.hero-image-wrap img {
  width: 100%;
  height: 372px;
  object-fit: cover;
  object-position: 50% 52%;
}

.hero-title-card {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 17px 18px 18px;
  border-radius: 24px;
  background: rgba(20, 20, 18, .58);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.hero-title-card span,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-title-card span {
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.14);
}

.hero-title-card h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 11vw, 54px);
  line-height: .95;
  letter-spacing: -.07em;
}

.hero-body {
  padding: 22px 8px 0;
  text-align: center;
}

.lead {
  margin: 0 auto 18px;
  max-width: 360px;
  color: #5f5b52;
  font-size: 15px;
  line-height: 1.62;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
}

.price-old,
.price-current {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}

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

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

.discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(38, 38, 34, .88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b352c 0%, #1e1d1a 100%);
  box-shadow: 0 18px 34px rgba(20, 19, 17, .18);
}

.button:active {
  transform: translateY(1px) scale(.99);
}

.button:disabled {
  cursor: default;
  opacity: .68;
  box-shadow: none;
}

.meta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 22px 0;
}

.section-intro {
  padding: 0 8px 14px;
  text-align: center;
}

.section-intro.compact {
  padding-bottom: 12px;
}

.section-intro h2,
.order-card h2 {
  margin: 10px auto 0;
  max-width: 340px;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.06em;
  color: #2a2925;
}

.story-card,
.order-card {
  border-radius: var(--radius-lg);
  background: rgba(248, 246, 241, .92);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: 0 18px 54px rgba(35, 32, 28, .08);
  overflow: hidden;
}

.story-photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 50% 56%;
  background: #e5e2dc;
}

.story-copy {
  padding: 20px 18px 20px;
}

.story-copy p {
  margin: 0 0 14px;
  color: #5c584f;
  font-size: 15px;
  line-height: 1.62;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.fact-item {
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(55, 52, 45, .08);
}

.fact-item strong {
  display: block;
  margin: 0 0 5px;
  color: #2d2b26;
  font-size: 14px;
  line-height: 1.15;
}

.fact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-note {
  margin: 18px 0 0;
  padding: 17px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(48,45,38,.90) 0%, rgba(34,33,30,.94) 100%);
  color: #fff;
}

.mini-note h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.mini-note p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

.detail-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
}

.detail-strip img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(28,28,26,.09);
  background: #d9d6cf;
}

.detail-strip img:first-child {
  object-position: 50% 42%;
}

.detail-strip img:last-child {
  object-position: 50% 54%;
}

.reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 4px;
  margin: 0 -2px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 26px;
}

.carousel-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  min-height: 202px;
  padding: 20px 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(42,39,33,.08);
  box-shadow: 0 12px 34px rgba(33,31,27,.07);
}

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

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2d2b26;
  color: #fff;
  font-weight: 800;
}

.review-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  color: #2d2b26;
}

.review-head span:not(.review-avatar) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.review-card p {
  margin: 0;
  color: #5d594f;
  font-size: 14px;
  line-height: 1.58;
}

.carousel-arrow {
  width: 34px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 26px rgba(35,32,28,.08);
  cursor: pointer;
  position: relative;
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid #36332d;
  border-right: 2px solid #36332d;
}

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

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 0;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 38, 34, .20);
  transition: width .2s ease, background .2s ease;
}

.carousel-dots button.is-active {
  width: 22px;
  background: rgba(38, 38, 34, .78);
}

.order-section {
  padding: 22px 0 28px;
}

.order-card {
  padding: 22px 18px 20px;
  text-align: center;
}

.order-card > p {
  margin: 12px auto 18px;
  max-width: 320px;
  color: #676257;
  font-size: 14px;
  line-height: 1.55;
}

.order-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.field-group {
  position: relative;
}

.field-group label {
  display: block;
  margin: 0 0 7px 4px;
  color: #575248;
  font-size: 13px;
  font-weight: 700;
}

.field-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(39, 36, 31, .12);
  background: rgba(255,255,255,.86);
  color: #262622;
  padding: 0 16px;
  outline: none;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-group input::placeholder {
  color: rgba(82, 77, 68, .46);
}

.field-group input:focus {
  border-color: rgba(64,56,45,.36);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116,101,79,.10);
}

.field-group.is-error input {
  border-color: rgba(176, 54, 37, .62);
  box-shadow: 0 0 0 4px rgba(176, 54, 37, .08);
}

.field-error {
  min-height: 16px;
  margin: 6px 4px 0;
  color: #a53729;
  font-size: 12px;
  line-height: 1.35;
}

.privacy-note {
  margin: 0;
  color: #827d72;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
}

.form-success {
  margin: 0;
  color: #49613c;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.form-success.is-error {
  color: #a53729;
}

.site-footer {
  padding: 24px 18px 30px;
  background: rgba(27, 27, 25, .94);
  color: rgba(255,255,255,.72);
  text-align: center;
}

.footer-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.site-footer p {
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.62;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 13px;
}

.footer-links a {
  color: rgba(255,255,255,.86);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.registry-note {
  color: rgba(255,255,255,.55);
}

@media (min-width: 390px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact-item {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
