:root {
  --bg: #f4f0ec;
  --bg-deep: #e8e5e0;
  --card: rgba(255, 255, 255, 0.93);
  --text: #27272b;
  --muted: #686873;
  --line: rgba(32, 38, 55, 0.10);
  --accent: #173f56;
  --accent-deep: #102b3c;
  --accent-soft: rgba(23, 63, 86, 0.12);
  --accent-warm: #8b4965;
  --danger: #ae4f45;
  --success: #305845;
  --shadow: 0 24px 60px rgba(24, 31, 46, 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(128, 56, 97, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(26, 93, 119, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f4f0 0%, #ebe8e2 48%, #f2eee9 100%);
}
img {
  display: block;
  width: 100%;
  height: auto;
}
a { color: inherit; }
button,
input { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding: 12px 0 24px;
}
.page,
.site-footer {
  width: min(100%, 430px);
  margin: 0 auto;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  position: relative;
  min-height: 560px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 32px;
  background: #111a24;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 16, 25, 0.24) 0%, rgba(9, 16, 25, 0.04) 38%, rgba(9, 16, 25, 0.36) 100%),
    radial-gradient(circle at 22% 16%, rgba(255,255,255,0.16), transparent 28%);
  z-index: 1;
}
.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: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.46);
  backdrop-filter: blur(10px);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  padding: 13px 17px 15px;
  border-radius: 24px;
  background: rgba(10, 18, 28, 0.58);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff9f2;
  font-size: 44px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  box-shadow: 0 16px 38px rgba(0,0,0,0.16);
}
.hero-body {
  margin: 0 14px;
  padding: 0 6px;
}
.lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.68;
  color: #4f4f58;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.price-old,
.price-current {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.045em;
}
.price-old {
  font-weight: 750;
  color: #a1a0a7;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current {
  font-weight: 850;
  color: #202128;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 73, 101, 0.12);
  color: #82425e;
  font-size: 13px;
  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, #1d526d 0%, #113244 100%);
  color: #fffaf4;
  box-shadow: 0 14px 28px rgba(17, 50, 68, 0.26);
  font-weight: 800;
}
.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #777781;
  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-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}
.compact-intro {
  margin-bottom: 12px;
}
.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(249,246,241,0.98));
  box-shadow: 0 18px 44px rgba(30, 36, 52, 0.08);
  overflow: hidden;
}
.story-photo {
  height: 450px;
  object-fit: cover;
  object-position: center top;
  background: #e7e3dd;
}
.story-copy {
  padding: 20px 18px 18px;
}
.story-copy p {
  margin: 0 0 12px;
  color: #4f5059;
  font-size: 15px;
  line-height: 1.68;
}
.story-copy p:last-child { margin-bottom: 0; }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}
.fact-item {
  padding: 14px 14px 13px;
  border-radius: 20px;
  background: rgba(23, 63, 86, 0.07);
  border: 1px solid rgba(23, 63, 86, 0.08);
}
.fact-item strong {
  display: block;
  margin-bottom: 5px;
  color: #243548;
  font-size: 14px;
}
.fact-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #61636d;
}
.mini-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(139,73,101,0.10), rgba(23,63,86,0.08));
  border: 1px solid rgba(139,73,101,0.10);
}
.mini-note h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.image-strip {
  margin: 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.image-strip::-webkit-scrollbar { display: none; }
.image-strip img {
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 16px 34px rgba(28, 35, 49, 0.10);
  scroll-snap-align: start;
}

.reviews-carousel {
  position: relative;
  margin: 0 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(30, 36, 52, 0.08);
  overflow: hidden;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .38s ease;
}
.review-card {
  min-width: 100%;
  padding: 21px 20px 22px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #1d526d, #8b4965);
  color: #fff;
  font-weight: 800;
}
.review-meta h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.review-meta span {
  display: block;
  margin-top: 2px;
  color: #7a7b84;
  font-size: 13px;
}
.review-card p {
  margin: 0;
  color: #4f5059;
  font-size: 15px;
  line-height: 1.65;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 22px rgba(20, 27, 38, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-arrow::before {
  content: '';
  position: absolute;
  inset: 11px 10px;
  border-top: 2px solid #223348;
  border-left: 2px solid #223348;
}
.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }
.carousel-arrow-prev::before { transform: rotate(-45deg); }
.carousel-arrow-next::before { transform: rotate(135deg); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 50, 68, 0.22);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.is-active {
  width: 20px;
  background: #1d526d;
}

.order-section {
  scroll-margin-top: 18px;
}
.order-card {
  padding: 22px 18px 19px;
  text-align: center;
}
.order-card h2 {
  margin: 12px 0 8px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.order-card > p {
  margin: 0 auto 18px;
  max-width: 320px;
  color: #686873;
  font-size: 14px;
  line-height: 1.58;
}
.order-form {
  display: grid;
  gap: 12px;
  text-align: left;
}
.field-group label {
  display: block;
  margin: 0 0 7px;
  padding-left: 3px;
  color: #3b3d46;
  font-size: 13px;
  font-weight: 750;
}
.field-group input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(23, 63, 86, 0.14);
  border-radius: 18px;
  padding: 0 15px;
  outline: none;
  background: rgba(255,255,255,0.86);
  color: #252630;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.field-group input::placeholder { color: #aaa9af; }
.field-group input:focus {
  border-color: rgba(29, 82, 109, 0.42);
  box-shadow: 0 0 0 4px rgba(29, 82, 109, 0.10);
  background: #fff;
}
.field-error {
  min-height: 18px;
  margin: 5px 3px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.3;
}
.field-group.has-error input {
  border-color: rgba(174, 79, 69, 0.62);
  box-shadow: 0 0 0 4px rgba(174, 79, 69, 0.09);
}
.privacy-note {
  margin: -2px 2px 0;
  color: #83838b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.form-success {
  min-height: 18px;
  margin: 0;
  color: var(--success);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.form-success.is-error {
  color: var(--danger);
}

.site-footer {
  padding: 20px 22px 6px;
  color: #74747d;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.site-footer h2 {
  margin: 0 0 8px;
  color: #3c3d46;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.site-footer p {
  margin: 0 0 10px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}
.site-footer a {
  text-decoration: none;
  color: #474a56;
  border-bottom: 1px solid rgba(71,74,86,0.25);
}
.registry-note {
  color: #898991;
}

@media (max-width: 370px) {
  .hero-card { min-height: 515px; border-radius: 28px; }
  .hero-copy h1 { font-size: 40px; }
  .price-old,
  .price-current { font-size: 25px; }
  .story-photo { height: 410px; }
  .image-strip img { height: 295px; }
}

.legal-body {
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 73, 101, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f4f0 0%, #ebe8e2 100%);
}
.legal-page {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 14px 30px;
}
.legal-page .back-link {
  display: inline-flex;
  margin: 0 0 14px;
  color: #4f5059;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 80, 89, 0.26);
}
.legal-document {
  padding: 24px 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 44px rgba(30, 36, 52, 0.08);
}
.legal-document h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.legal-document .meta {
  margin: -2px 0 18px;
  color: #777781;
  font-size: 13px;
}
.legal-document h2 {
  margin: 20px 0 8px;
  color: #30323b;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal-document p,
.legal-document li {
  color: #5c5d66;
  font-size: 14px;
  line-height: 1.64;
}
.legal-document p { margin: 0 0 10px; }
.legal-document ul {
  margin: 8px 0 12px;
  padding-left: 19px;
}
.legal-document strong {
  color: #2e3038;
}
