:root {
  --bg: #f3f0ec;
  --bg-soft: #fbf8f4;
  --card: rgba(255, 255, 255, 0.92);
  --text: #2b2b29;
  --muted: #6f6f69;
  --line: rgba(54, 50, 45, 0.10);
  --accent: #5f5c56;
  --accent-deep: #343330;
  --accent-soft: rgba(95, 92, 86, 0.13);
  --warm: #d7c7bb;
  --danger: #a84e45;
  --success: #526946;
  --shadow: 0 24px 60px rgba(42, 39, 36, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.95), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(217,204,194,0.48), transparent 28%),
    linear-gradient(180deg, #f8f5f1 0%, #efede9 44%, #f5efe8 100%);
  overflow-x: hidden;
}
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}
body::before {
  width: 220px;
  height: 220px;
  top: 120px;
  left: max(-110px, calc(50% - 360px));
  background: rgba(115, 111, 104, 0.08);
}
body::after {
  width: 180px;
  height: 180px;
  right: max(-90px, calc(50% - 350px));
  bottom: 90px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255,255,255,0.62);
}
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: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-photo-card {
  position: relative;
  margin: 0 14px;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background: #ded9d3;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 22, 20, 0.22) 0%, rgba(22, 22, 20, 0.04) 44%, rgba(22, 22, 20, 0.20) 100%),
    radial-gradient(circle at 28% 12%, rgba(255,255,255,0.14), transparent 30%);
  pointer-events: none;
}
.hero-photo-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-title-wrap {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.44);
  backdrop-filter: blur(12px);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title-wrap h1 {
  margin: 0;
  max-width: 285px;
  padding: 15px 17px 16px;
  border-radius: 25px;
  background: rgba(39, 38, 36, 0.54);
  border: 1px solid rgba(255,255,255,0.17);
  color: #fbfaf7;
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  box-shadow: 0 18px 36px rgba(18, 17, 16, 0.12);
  backdrop-filter: blur(8px);
}
.hero-body {
  margin: 0 14px;
  padding: 0 6px;
}
.lead {
  margin: 0 0 15px;
  font-size: 15px;
  line-height: 1.68;
  color: #52514c;
}
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.price-old,
.price-current {
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.price-old {
  font-weight: 750;
  color: #aaa59e;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current {
  font-weight: 850;
  color: #252522;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(52, 51, 48, 0.10);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.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;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled {
  opacity: .72;
  cursor: default;
}
.button-primary {
  background: linear-gradient(180deg, #5b5955 0%, #363532 100%);
  color: #fffefa;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(52, 51, 48, 0.24);
}
.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7a7973;
  text-align: center;
}

.section,
.order-section { padding: 0; }
.section-intro {
  margin: 0 14px 14px;
}
.section-intro h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.section-subtitle {
  margin: 8px 0 0;
  color: #7a7973;
  font-size: 14px;
  line-height: 1.55;
}
.story-card,
.order-card {
  margin: 0 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,245,240,0.98));
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(51, 48, 43, 0.07);
}
.story-photo {
  aspect-ratio: 0.92 / 1;
  object-fit: cover;
  object-position: center center;
}
.story-copy,
.order-card { padding: 22px; }
.story-copy p,
.order-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #52514c;
}
.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(241, 238, 234, 0.92);
  border: 1px solid rgba(54, 51, 48, 0.08);
}
.fact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #30302d;
}
.fact-item p {
  font-size: 14px;
  line-height: 1.56;
  color: #65625c;
}
.mini-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,238,233,0.96));
  border: 1px solid rgba(54, 51, 48, 0.09);
}
.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.64;
  color: #5b5953;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.gallery-grid img {
  aspect-ratio: 0.88 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(54, 51, 48, 0.10);
  background: #f0ede8;
}

.reviews-carousel {
  position: relative;
  margin: 0 14px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 28px;
}
.carousel-track {
  display: flex;
  transition: transform .35s ease;
}
.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 230px;
  padding: 24px 22px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.93), rgba(246,243,238,0.98));
}
.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: rgba(55, 54, 51, 0.10);
  color: var(--accent-deep);
  font-weight: 850;
}
.review-meta h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.review-meta span {
  font-size: 13px;
  color: #7a7973;
}
.review-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #51504b;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(54, 51, 48, 0.12);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(42, 39, 36, 0.08);
}
.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-radius: 50%;
  border: 0;
  background: rgba(54, 51, 48, 0.22);
}
.carousel-dots button.is-active { background: var(--accent-deep); }

.order-card { padding: 22px; }
.order-form { margin-top: 18px; }
.field-group { margin-bottom: 16px; }
.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
}
.field-group input {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(54, 51, 48, 0.14);
  background: rgba(255,255,255,0.98);
  padding: 0 16px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field-group input:focus {
  border-color: rgba(54, 51, 48, 0.32);
  box-shadow: 0 0 0 4px rgba(54, 51, 48, 0.06);
}
.field-group input::placeholder { color: #a29f98; }
.field-group.has-error input {
  border-color: var(--danger);
  background: rgba(255,247,246,0.96);
}
.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: 16px;
  padding: 0 16px 20px;
  text-align: center;
  color: #5d5b55;
}
.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(93, 91, 85, 0.22);
}
.registry-note { color: #7c7972; }

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

@media (max-width: 360px) {
  .hero-photo-card { min-height: 510px; }
  .hero-title-wrap h1 { font-size: 34px; }
  .price-old,
  .price-current { font-size: 25px; }
  .section-intro h2,
  .mini-note h3,
  .order-card h2 { font-size: 27px; }
}
