:root {
  --bg: #f6eef8;
  --bg-deep: #241032;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(255, 250, 255, 0.82);
  --text: #2f2437;
  --muted: #766a7f;
  --line: rgba(92, 45, 111, 0.13);
  --accent: #7d2fa7;
  --accent-deep: #542071;
  --accent-bright: #b15be0;
  --accent-soft: rgba(125, 47, 167, 0.13);
  --gold: #d7b46b;
  --danger: #b94b5b;
  --success: #496b4a;
  --shadow: 0 24px 60px rgba(63, 22, 86, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(232, 184, 255, 0.68), transparent 32%),
    radial-gradient(circle at 15% 18%, rgba(215, 180, 107, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf3ff 0%, #f4e8fa 35%, #f9f2f5 100%);
}

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

a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding: 14px 0 24px;
}

.page,
.site-footer {
  width: min(100%, 430px);
  margin: 0 auto;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  position: relative;
  margin: 0 14px;
  min-height: 500px;
  overflow: hidden;
  border-radius: 34px;
  background: #4f1a73;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 8, 45, 0.68) 0%, rgba(28, 8, 45, 0.08) 36%, rgba(28, 8, 45, 0.06) 66%, rgba(28, 8, 45, 0.58) 100%),
    radial-gradient(circle at 16% 12%, rgba(255,255,255,0.35), transparent 24%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 280px;
  padding: 14px 16px 15px;
  border-radius: 24px;
  background: rgba(33, 9, 50, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff9ff;
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  box-shadow: 0 18px 38px rgba(25, 7, 36, 0.23);
}

.hero-body {
  margin: 0 14px;
  padding: 0 6px;
}

.lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.68;
  color: #5e5168;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.price-old,
.price-current {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.price-old {
  font-weight: 750;
  color: rgba(99, 82, 109, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-current {
  font-weight: 850;
  color: #2a1736;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(215, 180, 107, 0.26), rgba(125, 47, 167, 0.13));
  color: var(--accent-deep);
  border: 1px solid rgba(125, 47, 167, 0.14);
  font-size: 13px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.button:active { transform: translateY(1px); }
.button:disabled { opacity: .74; cursor: default; }

.button-primary {
  color: #fffaff;
  background: linear-gradient(180deg, #9442c0 0%, #622586 100%);
  box-shadow: 0 15px 30px rgba(98, 37, 134, 0.26);
}

.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8c7b94;
  text-align: center;
}

.section,
.order-section {
  padding: 0;
}

.section-intro {
  margin: 0 14px 14px;
}

.section-intro.centered {
  text-align: center;
}

.section-intro h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.story-card,
.order-card {
  margin: 0 14px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(253,247,255,0.94));
  box-shadow: 0 18px 44px rgba(75, 31, 99, 0.08);
}

.story-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.story-copy,
.order-card {
  padding: 22px;
}

.story-copy p,
.order-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5e5168;
}

.story-copy p + p { margin-top: 14px; }

.facts-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.fact-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(125, 47, 167, 0.07);
  border: 1px solid rgba(125, 47, 167, 0.09);
}

.fact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #3b1e4e;
}

.fact-item p {
  font-size: 14px;
  line-height: 1.55;
  color: #66556f;
}

.mini-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,242,255,0.96));
  border: 1px solid rgba(125, 47, 167, 0.10);
}

.mini-note h3,
.order-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.mini-note p {
  font-size: 14px;
  line-height: 1.62;
  color: #66556f;
}

.visual-flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.visual-flow::-webkit-scrollbar { display: none; }

.visual-flow figure {
  scroll-snap-align: center;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(75, 31, 99, 0.06);
}

.visual-flow img {
  aspect-ratio: 0.62 / 1;
  object-fit: cover;
  object-position: center top;
}

.visual-flow figcaption {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #5e5168;
  font-size: 13px;
  line-height: 1.45;
}

.compact-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 14px 0;
}

.compact-gallery img {
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f7effa;
  box-shadow: 0 12px 26px rgba(75, 31, 99, 0.05);
}

.compact-gallery img:nth-child(4) {
  object-position: center;
}

.reviews-carousel {
  position: relative;
  margin: 0 14px;
}

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

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

.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 222px;
  padding: 24px 22px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0%, rgba(215,180,107,0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(253,247,255,0.96));
}

.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: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 850;
}

.review-meta h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.review-meta span {
  font-size: 13px;
  color: #8a7a93;
}

.review-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #5d5166;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(125, 47, 167, 0.14);
  background: rgba(255,255,255,0.94);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(75, 31, 99, 0.10);
}

.carousel-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid var(--accent-deep);
  border-right: 2px solid var(--accent-deep);
}

.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }
.carousel-arrow-prev::before { transform: rotate(-135deg); }
.carousel-arrow-next::before { transform: rotate(45deg); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(84, 32, 113, 0.24);
}

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

.order-card { padding: 22px; }
.order-card .section-kicker { margin-bottom: 12px; }

.order-form {
  margin-top: 18px;
}

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

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #3e2a4e;
}

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(125, 47, 167, 0.17);
  background: rgba(255,255,255,0.98);
  color: var(--text);
  outline: none;
}

.field-group input:focus {
  border-color: rgba(125, 47, 167, 0.45);
  box-shadow: 0 0 0 4px rgba(125, 47, 167, 0.08);
}

.field-group input::placeholder { color: #a99bb0; }

.field-group.has-error input {
  border-color: var(--danger);
  background: rgba(255, 246, 248, 0.98);
}

.field-error,
.form-success {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}

.form-success { color: var(--success); }
.form-success.is-error { color: var(--danger); }

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

.site-footer {
  margin-top: 14px;
  padding: 0 16px 20px;
  text-align: center;
  color: #6f6176;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(125,47,167,.18);
}

.registry-note { color: #8d7f94; }

@media (max-width: 370px) {
  .hero-card { min-height: 455px; border-radius: 28px; }
  .hero-copy h1 { font-size: 33px; }
  .price-old,
  .price-current { font-size: 25px; }
  .section-intro h2 { font-size: 27px; }
  .visual-flow { grid-auto-columns: 86%; }
}

@media (min-width: 431px) {
  .page-shell { padding-top: 18px; }
  .hero-card { min-height: 530px; }
}
