:root {
  --bg: #efefec;
  --bg-warm: #e9e4de;
  --card: #f8f7f4;
  --text: #272624;
  --muted: #6d6a65;
  --line: rgba(38, 37, 35, 0.11);
  --accent: #b34a36;
  --accent-deep: #7f3023;
  --accent-soft: rgba(179, 74, 54, 0.10);
  --dark: #171817;
  --danger: #aa4337;
  --success: #3f6648;
  --shadow: 0 24px 58px rgba(31, 31, 29, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.90), transparent 28%),
    linear-gradient(180deg, #f4f4f1 0%, var(--bg) 52%, var(--bg-warm) 100%);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding: 12px 0 26px;
}

.page,
.site-footer {
  width: min(100%, 430px);
  margin: 0 auto;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 548px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 34px;
  background: #d9d8d5;
  box-shadow: var(--shadow);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.10) 30%, rgba(0, 0, 0, 0.02) 62%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.20), transparent 48%);
}

.hero-copy {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 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: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #f7f5f1;
  background: rgba(25, 25, 24, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.section-kicker {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(179, 74, 54, 0.10);
}

.hero-copy h1 {
  max-width: 300px;
  margin: 0;
  padding: 14px 16px 15px;
  border-radius: 22px;
  background: rgba(16, 17, 16, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #faf9f6;
  font-size: clamp(34px, 9vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  backdrop-filter: blur(8px);
}

.hero-body {
  margin: 0 14px;
  padding: 0 4px;
}

.lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.68;
  color: #504e49;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.price-old,
.price-current {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.price-old {
  font-weight: 700;
  color: #a5a29d;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-current {
  font-weight: 850;
  color: #242321;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 19px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.button:active { transform: translateY(1px); }
.button:disabled { opacity: .72; cursor: default; }

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #292a28 0%, #161716 100%);
  box-shadow: 0 14px 28px rgba(21, 22, 21, 0.22);
}

.meta-note {
  margin: 10px 0 0;
  text-align: center;
  color: #7f7c76;
  font-size: 13px;
  line-height: 1.5;
}

.section,
.order-section { padding: 0; }

.section-intro {
  margin: 0 14px 14px;
}

.section-intro h2 {
  margin: 12px 0 0;
  max-width: 360px;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.story-card,
.order-card {
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(250, 250, 248, 0.98), rgba(244, 241, 236, 0.98));
  box-shadow: 0 18px 38px rgba(37, 37, 34, 0.06);
}

.story-photo {
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
  object-position: center;
}

.story-copy,
.order-card { padding: 22px; }

.story-copy > p,
.order-card > p {
  margin: 0;
  color: #53504b;
  font-size: 15px;
  line-height: 1.7;
}

.story-copy > p + p { margin-top: 14px; }

.facts-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.fact-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(232, 229, 224, 0.65);
  border: 1px solid rgba(38, 37, 35, 0.07);
}

.fact-item strong {
  display: block;
  margin-bottom: 6px;
  color: #302e2b;
  font-size: 14px;
}

.fact-item p {
  margin: 0;
  color: #625f59;
  font-size: 14px;
  line-height: 1.55;
}

.care-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 21px;
  background: #232422;
  color: #f5f3ef;
}

.care-note span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e4a697;
}

.care-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: #ddd9d2;
}

.reviews-carousel {
  position: relative;
  margin: 0 12px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 28px;
}

.carousel-track {
  display: flex;
  transition: transform .34s ease;
}

.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 236px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(250, 250, 248, 0.98), rgba(235, 231, 225, 0.98));
}

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

.review-avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #252624;
  color: #f6f4ef;
  font-weight: 800;
}

.review-meta h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.review-meta span {
  color: #7a7771;
  font-size: 13px;
}

.review-card p {
  margin: 0;
  color: #514f4a;
  font-size: 15px;
  line-height: 1.72;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid rgba(30, 30, 29, 0.10);
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.92);
  box-shadow: 0 8px 22px rgba(32, 32, 30, .10);
  cursor: pointer;
}

.carousel-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #2c2c2a;
  border-right: 2px solid #2c2c2a;
}

.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: 15px 0 2px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 36, 34, 0.18);
  cursor: pointer;
}

.carousel-dots button.is-active { background: var(--accent); }

.order-card h2 {
  margin: 12px 0 10px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.order-form { margin-top: 20px; }

.field-group { margin-bottom: 15px; }

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: #33312e;
  font-size: 14px;
  font-weight: 650;
}

.field-group input {
  width: 100%;
  height: 55px;
  padding: 0 16px;
  border: 1px solid rgba(38, 37, 35, 0.13);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-group input:focus {
  border-color: rgba(44, 44, 42, 0.42);
  box-shadow: 0 0 0 4px rgba(41, 42, 40, 0.06);
}

.field-group input::placeholder { color: #aaa69f; }

.field-group.has-error input {
  border-color: var(--danger);
  background: #fff8f6;
}

.field-error,
.form-success {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

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

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  margin-top: 18px;
  padding: 2px 18px 20px;
  color: #625f59;
  text-align: center;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  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 15px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  text-underline-offset: 3px;
}

.registry-note { color: #817d76; }

/* Стили для правовых страниц, если они используют общий файл */
.legal-body {
  min-height: 100vh;
  padding: 18px;
}

.legal-page {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(250, 250, 248, 0.96);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-page h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 20px 0 10px;
  font-size: 20px;
}

.legal-page p {
  margin: 0;
  color: #514f4a;
  font-size: 15px;
  line-height: 1.7;
}

.legal-page p + p,
.legal-page h2 + p { margin-top: 10px; }

@media (max-width: 360px) {
  .hero-card { min-height: 510px; }
  .hero-copy h1 { font-size: 33px; }
  .price-old, .price-current { font-size: 23px; }
  .story-copy, .order-card { padding: 19px; }
}

@media (min-width: 431px) {
  .page-shell { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track, .button { transition: none; }
}
