:root {
  --bg: #edf3ef;
  --bg-soft: #f8f8f3;
  --card: rgba(255, 255, 255, 0.94);
  --text: #22312c;
  --muted: #68756f;
  --line: rgba(37, 59, 52, 0.12);
  --accent: #2f6b58;
  --accent-deep: #17483b;
  --accent-soft: rgba(47, 107, 88, 0.13);
  --accent-warm: #d7c4a5;
  --danger: #b55245;
  --success: #2f6b58;
  --shadow: 0 22px 58px rgba(18, 55, 45, 0.10);
}

* { 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,255,255,0.95), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(47,107,88,0.10), transparent 28%),
    linear-gradient(180deg, #f7f8f4 0%, #edf3ef 44%, #f3eee6 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,255,255,1), transparent 28%),
    linear-gradient(155deg, #e9f0eb 0%, #ffffff 42%, #dfe8e4 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(20, 54, 45, 0.72));
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 62px 8px 20px;
  width: calc(100% - 16px);
  height: calc(100% - 82px);
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(17, 47, 38, 0.16));
}
.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,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.42);
  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(17, 45, 38, 0.58);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fbfcf8;
  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: #4d5a55;
}
.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: #a5aea9;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current {
  font-weight: 800;
  color: #1f2d28;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47,107,88,0.12);
  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, #347663 0%, #1f5848 100%);
  color: #fbfcf8;
  box-shadow: 0 14px 28px rgba(31, 88, 72, 0.26);
  font-weight: 800;
}
.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7c8781;
  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,255,255,0.96), rgba(248,246,240,0.98));
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(18, 55, 45, 0.07);
}
.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: #4d5a55;
}
.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(47, 107, 88, 0.08);
  border: 1px solid rgba(47, 107, 88, 0.10);
}
.fact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #20322b;
}
.fact-item p {
  font-size: 13px;
  line-height: 1.55;
  color: #5d6964;
}
.mini-note {
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31,88,72,0.10), rgba(215,196,165,0.15));
  border: 1px solid rgba(31,88,72,0.10);
}
.mini-note h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.mini-note p {
  font-size: 14px;
  line-height: 1.65;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.gallery-grid img {
  height: 150px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(37, 59, 52, 0.08);
}
.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(3) {
  grid-column: span 2;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}
.gallery-grid img:nth-child(4) {
  object-fit: contain;
}

.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(18, 55, 45, 0.06);
}
.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,255,255,0.96), rgba(245,247,241,0.98));
  border: 1px solid rgba(37, 59, 52, 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: #4c5853;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 22px rgba(18,55,45,0.12);
  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(23,72,59,0.25);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.carousel-dots button.is-active {
  width: 22px;
  background: var(--accent);
}

.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: #2e4039;
}
.field-group input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(37,59,52,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  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(47,107,88,0.52);
  box-shadow: 0 0 0 4px rgba(47,107,88,0.10);
  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: #7f8983;
  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: #68736d;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.footer-title {
  margin-bottom: 8px;
  color: #32433c;
  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: #40544b;
  text-decoration: none;
  border-bottom: 1px solid rgba(64,84,75,0.22);
}
.registry-note {
  color: #7e8782;
}

@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; }
}
