:root {
  --page-bg: #edf5f7;
  --page-bg-warm: #f5efe4;
  --surface: #fffdf8;
  --surface-blue: #eef7f9;
  --text: #29373a;
  --muted: #68777a;
  --line: rgba(45, 75, 81, 0.12);
  --accent: #4b8791;
  --accent-deep: #285e68;
  --accent-soft: #dceff2;
  --warm: #b59569;
  --danger: #b8514a;
  --shadow: 0 22px 55px rgba(44, 77, 85, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.92), transparent 28%),
    linear-gradient(180deg, #eaf5f8 0%, #f7f1e7 48%, #eef5f3 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: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  position: relative;
  min-height: 520px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 34px;
  background: #badce5;
  box-shadow: var(--shadow);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 47, 54, 0.06) 0%, rgba(20, 47, 54, 0.02) 50%, rgba(19, 42, 47, 0.66) 100%),
    linear-gradient(90deg, rgba(24, 48, 54, 0.10), transparent 55%);
}
.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-kicker {
  color: #eaf9fb;
  background: rgba(24, 61, 68, 0.52);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
}
.section-kicker {
  color: var(--accent-deep);
  background: rgba(220, 239, 242, .88);
  border: 1px solid rgba(75, 135, 145, .12);
}
.hero-copy h1 {
  width: fit-content;
  max-width: 315px;
  margin: 9px 0 0;
  padding: 13px 15px 14px;
  border-radius: 22px;
  color: #fffdf7;
  background: rgba(24, 47, 52, 0.58);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: clamp(31px, 9vw, 39px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-body {
  margin: 0 14px;
  padding: 0 4px;
}
.lead {
  margin: 0 0 15px;
  color: #526366;
  font-size: 15px;
  line-height: 1.68;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 16px;
}
.price-old,
.price-current {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.045em;
}
.price-old {
  color: #a1adaf;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current {
  color: #243639;
  font-weight: 850;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  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: 19px;
  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: wait; }
.button-primary {
  color: #f8ffff;
  background: linear-gradient(180deg, #538f99 0%, #326d77 100%);
  box-shadow: 0 14px 28px rgba(50, 109, 119, .25);
  font-weight: 800;
}
.meta-note {
  margin: 10px 0 0;
  color: #849194;
  font-size: 13px;
  text-align: center;
}

.section-intro {
  margin: 0 14px 14px;
}
.section-intro h2 {
  margin: 11px 0 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.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(255,255,255,.96), rgba(250,247,240,.98));
  box-shadow: 0 18px 42px rgba(50, 77, 80, .08);
}
.story-photo {
  aspect-ratio: 1 / .98;
  object-fit: cover;
}
.story-copy,
.order-card { padding: 22px; }
.story-copy > p,
.order-card > p {
  margin: 0;
  color: #526164;
  font-size: 15px;
  line-height: 1.7;
}
.story-copy > p + p { margin-top: 14px; }
.facts-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.fact-item {
  padding: 15px 16px;
  border: 1px solid rgba(75, 135, 145, .10);
  border-radius: 18px;
  background: rgba(235, 246, 247, .82);
}
.fact-item strong {
  display: block;
  margin-bottom: 5px;
  color: #2b5057;
  font-size: 14px;
}
.fact-item p {
  margin: 0;
  color: #607174;
  font-size: 14px;
  line-height: 1.55;
}
.mini-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(181, 149, 105, .14);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfa, #f5ede1);
}
.mini-note h3,
.order-card h2 {
  margin: 0 0 9px;
  font-size: 27px;
  line-height: 1.07;
  letter-spacing: -.04em;
}
.mini-note p {
  margin: 0;
  color: #66706e;
  font-size: 14px;
  line-height: 1.62;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 75, 81, .10);
  border-radius: 19px;
  background: #f4f7f6;
}
.gallery-item-wide { grid-column: 1 / -1; }
.gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-item-wide img { aspect-ratio: 1 / .96; }
.gallery-item figcaption {
  padding: 11px 12px 12px;
  color: #68777a;
  font-size: 12px;
  line-height: 1.45;
}

.reviews-carousel {
  position: relative;
  margin: 0 12px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 28px;
}
.carousel-track {
  display: flex;
  transition: transform .36s ease;
}
.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 236px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(235,246,247,.98));
}
.review-card-photo {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
}
.review-card-photo > img {
  width: 116px;
  height: 100%;
  min-height: 208px;
  object-fit: cover;
  border-radius: 20px;
}
.review-content { padding: 9px 7px 9px 0; }
.review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.review-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 850;
}
.review-meta h3 {
  margin: 0 0 3px;
  font-size: 18px;
}
.review-meta span {
  color: #7b8a8c;
  font-size: 13px;
}
.review-card p {
  margin: 0;
  color: #526467;
  font-size: 15px;
  line-height: 1.68;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 75, 81, .14);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(45, 75, 81, .12);
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto;
  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); margin-left: 16px; }
.carousel-arrow-next::before { transform: rotate(45deg); margin-right: 16px; }
.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: #c3d2d4;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.is-active {
  width: 23px;
  background: var(--accent);
}

.order-card { padding: 24px 22px; }
.order-card > .section-kicker { margin-bottom: 11px; }
.order-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.field-group label {
  display: block;
  margin: 0 0 7px 2px;
  color: #41575b;
  font-size: 13px;
  font-weight: 750;
}
.field-group > input,
.phone-control {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(45, 75, 81, .16);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255,255,255,.95);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-group > input {
  padding: 0 15px;
  outline: none;
}
.phone-control {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.phone-control span {
  flex: 0 0 auto;
  padding-left: 15px;
  color: #40575b;
  font-weight: 700;
}
.phone-control input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 15px 0 4px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}
.field-group > input:focus,
.phone-control:focus-within {
  border-color: rgba(75, 135, 145, .68);
  box-shadow: 0 0 0 4px rgba(75, 135, 145, .10);
}
.field-group.has-error > input,
.field-group.has-error .phone-control {
  border-color: rgba(184, 81, 74, .70);
  box-shadow: 0 0 0 4px rgba(184, 81, 74, .08);
}
.field-error {
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.privacy-note {
  margin: -2px 6px 0;
  color: #899396;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.form-success {
  margin: 0;
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.form-success.is-error { color: var(--danger); }

.site-footer {
  padding: 27px 26px 5px;
  color: #68777a;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}
.footer-title {
  margin-bottom: 9px;
  color: #3f5559;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}
.site-footer p { margin: 0 0 10px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 13px;
  margin: 13px 0;
}
.footer-links a {
  color: #456c73;
  text-underline-offset: 3px;
}
.registry-note { color: #8a9597; }

@media (max-width: 370px) {
  .hero-card { min-height: 480px; }
  .hero-copy h1 { font-size: 31px; }
  .price-old, .price-current { font-size: 23px; }
  .review-card-photo { grid-template-columns: 96px 1fr; gap: 12px; }
  .review-card-photo > img { width: 96px; }
  .review-card p { font-size: 14px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
