:root {
  --bg: #f7f1e8;
  --bg-soft: #fdf9f3;
  --card: rgba(255, 253, 248, 0.96);
  --text: #3a322a;
  --muted: #8a7d70;
  --line: rgba(120, 100, 80, 0.14);
  --accent: #c9a37a;
  --accent-deep: #8b6a44;
  --accent-soft: rgba(201, 163, 122, 0.16);
  --accent-warm: #e8d9c2;
  --danger: #b55245;
  --success: #7a8a5c;
  --shadow: 0 22px 58px rgba(140, 110, 75, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,252,245,0.98), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(232,217,194,0.35), transparent 28%),
    linear-gradient(180deg, #fdf8f0 0%, #f7f1e8 44%, #f0e6d8 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: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  position: relative;
  margin: 0 14px;
  overflow: hidden;
  border-radius: 34px;
  min-height: 500px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,253,248,1), transparent 28%),
    linear-gradient(155deg, #f5ede0 0%, #fffdf8 42%, #ecdfc9 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(90, 65, 40, 0.65));
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: auto 18px 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,252,245,0.82);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-overlay h1 {
  margin: 0;
  max-width: 300px;
  padding: 14px 16px 15px;
  border-radius: 24px;
  background: rgba(90, 65, 40, 0.58);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fffaf0;
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  backdrop-filter: blur(10px);
}
.hero-body {
  margin: 0 14px;
  padding: 0 6px;
}
.lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.68;
  color: #5a4d40;
}
.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.04em;
  line-height: 1;
}
.price-old {
  font-weight: 700;
  color: #b5a595;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current {
  font-weight: 800;
  color: #3a322a;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(201,163,122,0.20);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
}
.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: .75;
  cursor: default;
}
.button-primary {
  background: linear-gradient(180deg, #d4b088 0%, #a67c50 100%);
  color: #fffaf0;
  box-shadow: 0 14px 28px rgba(166, 124, 80, 0.28);
  font-weight: 800;
}
.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #a2937f;
  text-align: center;
}

.section,
.order-section {
  padding: 0;
}
.section-intro {
  margin: 0 14px 14px;
}
.section-intro h2,
.order-card h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.story-card,
.order-card {
  margin: 0 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,253,248,0.97), rgba(250,244,234,0.98));
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(140, 110, 75, 0.08);
}
.story-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}
.story-copy,
.order-card {
  padding: 22px;
}
.story-copy p,
.order-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5a4d40;
}
.story-copy p + p {
  margin-top: 14px;
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
}
.fact-item {
  padding: 15px;
  border-radius: 20px;
  background: rgba(201, 163, 122, 0.10);
  border: 1px solid rgba(201, 163, 122, 0.14);
}
.fact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #3a322a;
}
.fact-item p {
  font-size: 13px;
  line-height: 1.55;
  color: #7a6d5d;
}
.mini-note {
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(201,163,122,0.14), rgba(232,217,194,0.30));
  border: 1px solid rgba(201,163,122,0.18);
}
.mini-note h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #6b5238;
}
.mini-note p {
  font-size: 14px;
  line-height: 1.65;
  color: #5a4d40;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(120, 100, 80, 0.10);
}
.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(3) {
  grid-column: span 1;
  max-height: none;
}

.reviews-intro h2 {
  max-width: 330px;
}
.reviews-carousel {
  position: relative;
  margin: 0 14px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 14px 28px rgba(140, 110, 75, 0.07);
}
.carousel-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,253,248,0.97), rgba(250,244,234,0.98));
  border: 1px solid rgba(120, 100, 80, 0.10);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}
.review-meta h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.review-meta span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.review-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #5a4d40;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,253,248,0.92);
  box-shadow: 0 12px 22px rgba(140,110,75,0.14);
  transform: translateY(-50%);
  cursor: pointer;
}
.carousel-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent-deep);
  border-right: 2px solid var(--accent-deep);
}
.carousel-arrow-prev { left: -7px; }
.carousel-arrow-next { right: -7px; }
.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: 12px;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(139,106,68,0.25);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.carousel-dots button.is-active {
  width: 22px;
  background: var(--accent-deep);
}

.order-section {
  scroll-margin-top: 18px;
}
.order-card {
  text-align: left;
}
.order-card h2 {
  margin-bottom: 10px;
}
.order-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-group label {
  font-size: 13px;
  font-weight: 800;
  color: #5a4630;
}
.field-group input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(120,100,80,0.16);
  border-radius: 18px;
  background: rgba(255,253,248,0.92);
  padding: 0 16px;
  outline: none;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field-group input:focus {
  border-color: rgba(201,163,122,0.60);
  box-shadow: 0 0 0 4px rgba(201,163,122,0.14);
  background: #fff;
}
.field-error {
  min-height: 16px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--danger);
}
.field-group.has-error input {
  border-color: rgba(181,82,69,0.65);
  box-shadow: 0 0 0 4px rgba(181,82,69,0.08);
}
.privacy-note {
  margin: -2px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #a2937f;
  text-align: center;
}
.form-success {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--success);
}
.form-success.is-error {
  color: var(--danger);
}

.site-footer {
  margin-top: 20px;
  padding: 22px 28px 0;
  color: #8a7d70;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.footer-title {
  margin-bottom: 8px;
  color: #6b5238;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
}
.site-footer p {
  margin: 0 0 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #7a6650;
  text-decoration: none;
  border-bottom: 1px solid rgba(122,102,80,0.24);
}
.registry-note {
  color: #a2937f;
}

@media (max-width: 360px) {
  .hero-overlay h1 { font-size: 32px; }
  .price-old,
  .price-current { font-size: 25px; }
  .section-intro h2,
  .order-card h2 { font-size: 27px; }
  .story-copy,
  .order-card { padding: 19px; }
}