:root {
  --bg: #e7e8e4;
  --bg-soft: #f5f4f0;
  --paper: #ffffff;
  --paper-warm: #f8f7f3;
  --text: #242827;
  --muted: #68716d;
  --muted-soft: #8a918e;
  --line: rgba(31, 35, 34, 0.10);
  --shadow: 0 22px 60px rgba(15, 18, 18, 0.13);
  --accent: #151818;
  --accent-soft: #2a2f2d;
  --danger: #b84949;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78) 0, rgba(255, 255, 255, 0) 340px),
    linear-gradient(180deg, #f1f1ee 0%, #d8dcda 44%, #eef0ec 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 440px);
  margin: 0 auto;
  background: linear-gradient(180deg, #f7f6f2 0%, #eeefeb 52%, #e1e5e2 100%);
  box-shadow: 0 0 0 1px rgba(32, 36, 35, 0.06), 0 30px 90px rgba(18, 22, 22, 0.16);
  overflow: hidden;
}

.page {
  padding-bottom: 10px;
}

.hero {
  padding: 12px 12px 34px;
}

.hero-photo-wrap {
  position: relative;
  min-height: 390px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(14, 16, 16, 0.66) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 390px;
  object-fit: contain;
  object-position: 50% 26%;
}

.hero-title-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 18px 18px 17px;
  border-radius: 24px;
  background: rgba(20, 23, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-title-card span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title-card h1 {
  margin: 0;
  font-size: clamp(36px, 12vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-body {
  padding: 25px 14px 0;
  text-align: center;
}

.lead {
  margin: 0 auto 18px;
  max-width: 360px;
  color: #4c5551;
  font-size: 16px;
  line-height: 1.58;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 19px;
}

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

.price-old {
  color: rgba(92, 99, 96, 0.52);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

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

.discount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(28, 32, 31, 0.08);
  color: #1f2422;
  font-size: 13px;
  font-weight: 800;
}

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 312px);
  min-height: 55px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
  box-shadow: 0 16px 34px rgba(14, 16, 16, 0.23);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

.meta-note {
  margin: 11px 0 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 600;
}

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

.section-intro {
  padding: 0 12px 15px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #69736f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2,
.order-card h2 {
  margin: 0;
  color: #202524;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.story-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(28, 32, 31, 0.10);
}

.story-photo {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 50% 50%;
  background: #ddd;
}

.story-copy {
  padding: 23px 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,247,244,0.94) 100%);
}

.story-copy p {
  margin: 0 0 14px;
  color: #4d5652;
  font-size: 15.5px;
  line-height: 1.62;
}

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

.fact-item {
  min-height: 105px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(236, 238, 234, 0.86);
  border: 1px solid rgba(36, 40, 39, 0.07);
}

.fact-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.25;
  color: #1f2422;
}

.fact-item p {
  margin: 0;
  color: #66706d;
  font-size: 13px;
  line-height: 1.42;
}

.mini-note {
  margin: 18px 0 18px;
  padding: 18px;
  border-radius: 23px;
  color: #eef2ef;
  background: linear-gradient(180deg, #2b302f 0%, #171a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.mini-note h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.mini-note p {
  margin: 0;
  color: rgba(242, 245, 242, 0.78);
  font-size: 14.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(36, 40, 39, 0.08);
  background: #ddd;
}

.reviews-carousel {
  position: relative;
  padding: 0 34px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(34, 38, 37, 0.10);
}

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

.review-card {
  flex: 0 0 100%;
  min-height: 218px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #363b3a 0%, #171a1a 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(19, 22, 22, 0.20);
}

.review-meta h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.1;
}

.review-meta span {
  display: block;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 600;
}

.review-card p {
  margin: 0;
  color: #4f5854;
  font-size: 15.5px;
  line-height: 1.62;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 33, 32, 0.92);
  box-shadow: 0 12px 26px rgba(22, 25, 24, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

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

.carousel-arrow-prev {
  left: 8px;
}

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

.carousel-arrow-next {
  right: 8px;
}

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

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

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 40, 39, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dots button.is-active {
  width: 22px;
  background: rgba(28, 32, 31, 0.84);
}

.order-section {
  padding: 14px 12px 34px;
}

.order-card {
  padding: 28px 18px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  box-shadow: 0 24px 58px rgba(27, 31, 30, 0.12);
  text-align: center;
}

.order-card > p {
  max-width: 330px;
  margin: 12px auto 21px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  padding-left: 3px;
  color: #343a38;
  font-size: 13px;
  font-weight: 800;
}

.field-group input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(31, 35, 34, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  outline: 0;
  background: #f7f7f4;
  color: var(--text);
  font-size: 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-group input:focus {
  background: #fff;
  border-color: rgba(27, 31, 30, 0.38);
  box-shadow: 0 0 0 4px rgba(24, 28, 27, 0.07);
}

.field-group.has-error input {
  border-color: rgba(184, 73, 73, 0.72);
  box-shadow: 0 0 0 4px rgba(184, 73, 73, 0.08);
}

.field-error {
  min-height: 17px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.order-form .button {
  width: 100%;
  margin-top: 2px;
}

.privacy-note {
  margin: 0;
  color: #8a918e;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
}

.form-success {
  min-height: 18px;
  margin: 0;
  color: #47634b;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

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

.site-footer {
  padding: 26px 24px 32px;
  color: rgba(232, 236, 233, 0.78);
  background: linear-gradient(180deg, #242928 0%, #121514 100%);
  text-align: center;
}

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

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 17px 0 14px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.registry-note {
  color: rgba(232, 236, 233, 0.62);
}

@media (max-width: 360px) {
  .hero-photo-wrap {
    min-height: 352px;
  }
  .hero-photo {
    height: 352px;
  }
  .hero-title-card h1 {
    font-size: 38px;
  }
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .reviews-carousel {
    padding: 0 29px;
  }
}

@media (min-width: 441px) {
  body {
    padding: 18px 0;
  }
  .page-shell {
    border-radius: 28px;
  }
  .hero-photo-wrap {
    border-radius: 24px 24px 34px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
