:root {
  --navy: #082c63;
  --navy-deep: #051d42;
  --blue-soft: #e9f2fb;
  --blue-line: #cadced;
  --cream: #fffaf0;
  --cream-deep: #f5ead2;
  --yellow: #f0c84c;
  --yellow-soft: #fff1b7;
  --text: #253342;
  --muted: #667584;
  --white: #ffffff;
  --danger: #b73535;
  --shadow: 0 24px 70px rgba(6, 34, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #e8edf3;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 238, 171, 0.48), transparent 34rem),
    #e8edf3;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f9fbfd;
  box-shadow: var(--shadow);
}

.page {
  overflow: hidden;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--yellow-soft);
}

.hero-media img {
  aspect-ratio: 1103 / 1426;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 22, 51, 0.72) 100%);
}

.hero-title {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  color: #fff;
  background: rgba(4, 31, 69, 0.76);
  box-shadow: 0 14px 32px rgba(3, 22, 51, 0.18);
  backdrop-filter: blur(10px);
}

.hero-title span {
  display: block;
  margin-bottom: 4px;
  color: #ffe79a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 0;
  font-size: clamp(31px, 9vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-body {
  padding: 24px 22px 32px;
}

.lead {
  margin: 0 0 21px;
  color: #435466;
  font-size: 16px;
  line-height: 1.62;
}

.price-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 18px;
}

.price-old,
.price-current {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.price-old {
  color: #9aa6b2;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-current {
  color: var(--navy);
}

.discount-badge {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #0a3a7c 0%, #072b60 100%);
  box-shadow: 0 13px 26px rgba(8, 44, 99, 0.22);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.meta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.section {
  padding: 38px 18px 0;
}

.section-intro {
  margin: 0 4px 18px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-intro h2,
.order-card h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-card {
  overflow: hidden;
  border: 1px solid rgba(8, 44, 99, 0.09);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 20px 54px rgba(8, 44, 99, 0.08);
}

.story-photo,
.detail-photo {
  background: var(--cream);
}

.story-copy {
  padding: 23px 18px 18px;
}

.story-copy > p {
  margin: 0 0 15px;
  color: #3c4d5e;
}

.facts-grid {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.fact-item {
  padding: 15px 15px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 17px;
  background: linear-gradient(135deg, #f4f9fe 0%, #eef5fc 100%);
}

.fact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 15px;
}

.fact-item p {
  margin: 0;
  color: #5a6a79;
  font-size: 14px;
  line-height: 1.5;
}

.spec-block,
.use-note {
  margin: 22px 0;
  padding: 18px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
}

.spec-block h3,
.use-note h3 {
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1.2;
}

.spec-block dl {
  margin: 0;
}

.spec-block dl div {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(8, 44, 99, 0.09);
}

.spec-block dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-block dt,
.spec-block dd {
  margin: 0;
  font-size: 14px;
}

.spec-block dt {
  color: var(--muted);
}

.spec-block dd {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.detail-photo {
  margin: 22px -18px 0;
  width: calc(100% + 36px);
}

.use-note {
  background: var(--blue-soft);
  border-color: var(--blue-line);
}

.use-note p {
  margin: 0;
  color: #46596b;
}

.reviews-section {
  padding-bottom: 4px;
}

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

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

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  min-height: 232px;
  padding: 23px 22px;
  border: 1px solid rgba(8, 44, 99, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
  box-shadow: 0 18px 46px rgba(8, 44, 99, 0.07);
}

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

.review-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 850;
}

.review-meta h3 {
  margin: 0 0 2px;
  color: var(--navy-deep);
  font-size: 16px;
}

.review-meta span {
  color: #9a7b14;
  font-size: 12px;
  font-weight: 700;
}

.review-card p {
  margin: 0;
  color: #465768;
  line-height: 1.65;
}

.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 29, 66, 0.82);
  box-shadow: 0 8px 20px rgba(5, 29, 66, 0.18);
  transform: translateY(-50%);
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-arrow-prev {
  left: -10px;
}

.carousel-arrow-prev::before {
  left: 15px;
  transform: rotate(-135deg);
}

.carousel-arrow-next {
  right: -10px;
}

.carousel-arrow-next::before {
  right: 15px;
  transform: rotate(45deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4cfda;
  transition: width 0.22s ease, border-radius 0.22s ease, background 0.22s ease;
}

.carousel-dots button.is-active {
  width: 22px;
  border-radius: 99px;
  background: var(--navy);
}

.order-section {
  padding: 43px 18px 38px;
}

.order-card {
  padding: 27px 20px 22px;
  border-radius: 26px;
  background: linear-gradient(150deg, #fff8df 0%, #f7e6a9 100%);
  border: 1px solid #ead28a;
  box-shadow: 0 22px 52px rgba(93, 72, 8, 0.1);
}

.order-card > p {
  margin: 11px 0 21px;
  color: #5f5a48;
}

.order-form {
  display: grid;
  gap: 14px;
}

.field-group {
  position: relative;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
}

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(8, 44, 99, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 44, 99, 0.1);
}

.field-group.has-error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(183, 53, 53, 0.08);
}

.field-error {
  min-height: 18px;
  margin: 5px 2px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.privacy-note {
  margin: -2px 5px 0;
  color: #756f5d;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.form-success {
  min-height: 0;
  margin: 0;
  color: #216a39;
  font-size: 13px;
  text-align: center;
}

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

.site-footer {
  padding: 30px 22px calc(30px + env(safe-area-inset-bottom));
  color: #c8d4e2;
  background: var(--navy-deep);
  font-size: 13px;
  line-height: 1.65;
}

.footer-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.site-footer p {
  margin: 0 0 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 17px 0 14px;
}

.footer-links a {
  color: #fff1b7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 241, 183, 0.38);
}

.registry-note {
  margin-bottom: 0 !important;
  color: #97abc0;
  font-size: 11px;
}

@media (min-width: 521px) {
  body {
    padding: 24px 0;
  }

  .page-shell {
    border-radius: 30px;
  }
}

@media (max-width: 380px) {
  .hero-body {
    padding-inline: 18px;
  }

  .price-row {
    grid-template-columns: 1fr auto;
  }

  .price-old,
  .price-current {
    font-size: 22px;
  }

  .discount-badge {
    grid-column: 1 / -1;
  }

  .section {
    padding-inline: 14px;
  }

  .order-section {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
