:root {
  --bg: #f5efe6;
  --bg-soft: #fbf8f2;
  --panel: #ffffff;
  --ink: #2e3037;
  --muted: #6f737b;
  --line: rgba(67, 72, 81, 0.10);
  --blue: #267fa5;
  --blue-dark: #1f5e7d;
  --rose: #d99ba5;
  --sand: #d7c3a4;
  --shadow: 0 24px 70px rgba(54, 49, 43, 0.13);
  --radius-xl: 30px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(38,127,165,0.14), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(217,155,165,0.18), transparent 30%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 48%, #ece4d8 100%);
  color: var(--ink);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  background: rgba(255, 252, 247, 0.78);
  box-shadow: 0 0 0 1px rgba(57, 50, 42, 0.04), 0 22px 80px rgba(69, 56, 43, 0.12);
  min-height: 100vh;
}
.page { overflow: hidden; }

.hero { padding: 12px 12px 26px; }
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 454px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #eee7da;
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
  height: 454px;
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.01);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,30,36,0.12) 0%, transparent 34%, rgba(28,27,25,0.34) 100%);
  pointer-events: none;
}
.hero-title-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 18px 18px 17px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 16px 42px rgba(28, 28, 28, 0.14);
}
.hero-title-card span,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-title-card h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #25272d;
}
.hero-body {
  padding: 25px 10px 0;
  text-align: center;
}
.lead {
  margin: 0 auto 18px;
  color: #555c65;
  font-size: 16px;
  line-height: 1.62;
  max-width: 37ch;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 10px;
  margin-bottom: 18px;
}
.price-old,
.price-current {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.price-old {
  color: rgba(46,48,55,0.42);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current { color: #25272d; }
.discount {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(38,127,165,0.11);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}
.button {
  appearance: none;
  border: 0;
  min-height: 56px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #2b90ba 0%, #1f6385 100%);
  box-shadow: 0 16px 32px rgba(31, 99, 133, 0.25);
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.65; cursor: default; transform: none; }
.meta-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section { padding: 34px 12px 0; }
.section-intro { text-align: center; padding: 0 12px 16px; }
.section-intro h2 {
  margin: 7px auto 0;
  max-width: 11ch;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.story-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(67,72,81,0.08);
  box-shadow: 0 20px 56px rgba(64, 55, 45, 0.10);
}
.story-photo-wrap {
  overflow: hidden;
  background: #eee9df;
}
.story-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 50% 23%;
}
.story-copy { padding: 22px 18px 20px; }
.story-copy > p {
  margin: 0 0 13px;
  color: #515963;
  font-size: 15px;
  line-height: 1.66;
}
.set-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}
.set-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247,244,237,0.95), rgba(255,255,255,0.82));
  border: 1px solid var(--line);
}
.set-item span {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: rgba(38,127,165,0.10);
  font-weight: 800;
  font-size: 12px;
}
.set-item p { margin: 0; color: #555d66; font-size: 14px; line-height: 1.48; }
.set-item strong { color: #2e3037; }
.pack-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(217,155,165,0.09);
  border: 1px solid rgba(217,155,165,0.20);
}
.pack-card img {
  width: 96px;
  height: 112px;
  object-fit: cover;
  object-position: 50% 31%;
  border-radius: 16px;
}
.pack-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.pack-card p { margin: 0; color: #62636a; font-size: 13px; line-height: 1.45; }

.reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
  align-items: center;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 18px 46px rgba(54, 49, 43, 0.09);
}
.carousel-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.review-card {
  min-width: 100%;
  padding: 20px 18px 21px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(67,72,81,0.08);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--rose), #b97882);
  font-weight: 800;
}
.review-meta h3 { margin: 0; font-size: 16px; }
.review-meta span { color: var(--muted); font-size: 13px; }
.review-card p {
  margin: 0;
  color: #535b64;
  font-size: 15px;
  line-height: 1.6;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 26px rgba(54, 49, 43, 0.08);
}
.carousel-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--blue-dark);
  border-right: 2px solid var(--blue-dark);
}
.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;
  margin-top: 13px;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(31,94,125,0.22);
}
.carousel-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.order-section { padding: 38px 12px 32px; }
.order-card {
  text-align: center;
  padding: 26px 18px 20px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,248,242,0.94));
  border: 1px solid rgba(67,72,81,0.09);
  box-shadow: var(--shadow);
}
.order-card h2 {
  margin: 8px 0 9px;
  font-size: 31px;
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.order-card > p {
  margin: 0 auto 19px;
  max-width: 31ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.order-form { display: grid; gap: 12px; text-align: left; }
.field-group { display: grid; gap: 7px; }
.field-group > span {
  padding-left: 3px;
  color: #424851;
  font-size: 13px;
  font-weight: 800;
}
.field-group input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(67,72,81,0.14);
  border-radius: 18px;
  padding: 0 15px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-group input:focus {
  border-color: rgba(38,127,165,0.56);
  box-shadow: 0 0 0 4px rgba(38,127,165,0.12);
}
.field-group.has-error input {
  border-color: rgba(184,70,70,0.72);
  box-shadow: 0 0 0 4px rgba(184,70,70,0.08);
}
.field-error {
  min-height: 16px;
  padding-left: 3px;
  color: #b84646;
  font-size: 12px;
  line-height: 1.3;
}
.order-form .button { margin-top: 2px; }
.policy-note {
  margin: 2px 0 0;
  text-align: center;
  color: #7a7d82;
  font-size: 11.5px;
  line-height: 1.42;
}
.policy-note a { color: var(--blue-dark); text-decoration: none; }
.form-message {
  margin: 0;
  min-height: 18px;
  text-align: center;
  color: #b84646;
  font-size: 13px;
}
.form-message.is-error { color: #b84646; }

.footer {
  padding: 24px 18px 28px;
  background: #2b3036;
  color: rgba(255,255,255,0.78);
  text-align: center;
  border-radius: 30px 30px 0 0;
}
.footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .10em;
}
.footer p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; }
.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-bottom: 12px;
  font-size: 12px;
}
.footer a { color: #fff; text-decoration: none; }
.register-note { color: rgba(255,255,255,0.62); }

@media (min-width: 431px) {
  .page-shell { border-radius: 0 0 32px 32px; }
}
@media (max-width: 360px) {
  .hero { padding-left: 9px; padding-right: 9px; }
  .hero-visual, .hero-visual img { height: 420px; min-height: 420px; }
  .section, .order-section { padding-left: 9px; padding-right: 9px; }
  .reviews-carousel { grid-template-columns: 32px 1fr 32px; gap: 5px; }
  .carousel-arrow { width: 32px; height: 32px; }
  .price-old, .price-current { font-size: 21px; }
}
