:root {
  --paper: #f3ece3;
  --paper-deep: #e7ddd0;
  --card: #fffaf4;
  --ink: #2c241c;
  --muted: #6a5b4e;
  --line: #e3d5c6;
  --clay: #b85c45;
  --clay-deep: #8d4332;
  --gold: #8d6b45;
  --blush: #f6e4d8;
  --sage: #e5ecdf;
  --shadow: 0 18px 50px rgba(74, 48, 32, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, #f8e7dc 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #efe6d4 0%, transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(44, 36, 28, 0.08);
  background: rgba(243, 236, 227, 0.92);
  backdrop-filter: blur(10px);
}
.top__inner {
  display: flex;
  align-items: baseline;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand span { font-style: italic; color: var(--gold); }

.hero, .pair, .points, .faq, .order, .foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}
.hero {
  display: grid;
  gap: 14px;
  padding-top: 10px;
}
.hero > * { min-width: 0; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
h1 { font-size: 34px; line-height: 1.02; max-width: 16ch; }
h1 em {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 500;
  color: var(--clay-deep);
}
h2 { font-size: 30px; }
.lead { max-width: 36rem; margin: 8px 0 0; font-size: 16px; }
.hero__actions { display: grid; gap: 8px; margin-top: 12px; }
.hero__actions .btn { width: 100%; min-height: 54px; }
.hero__note, .pay-note, .ladder__note, .foot__note { color: var(--muted); }
.hero__note { margin: 0; text-align: center; font-size: 14px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  text-align: center;
  line-height: 1.25;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.btn--pay {
  background: var(--clay);
  color: #fffaf6;
  box-shadow: 0 10px 24px rgba(141, 67, 50, 0.22);
}
.btn--pay:hover { background: var(--clay-deep); }
.btn--order { background: transparent; color: var(--ink); border-color: #c9b5a2; }
.btn--order:hover { background: #fff; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.viewer {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.viewer__frame {
  width: min(100%, 280px);
  padding: 10px 10px 12px;
  background: #fffaf4;
  border: 1px solid rgba(44, 36, 28, 0.06);
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(74, 48, 32, 0.12);
}
.viewer__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #f6e6d8;
  touch-action: pan-y;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
}
.slide.is-under { opacity: 1; z-index: 1; }
.slide.is-on { opacity: 1; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-on { transition: opacity 0.45s ease; }
}
.slide img,
.slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 48px 12px 14px;
  background: linear-gradient(transparent, rgba(44, 36, 28, 0.55));
  color: #fffaf4;
  text-align: center;
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  line-height: 1;
}
.viewer__meter {
  height: 2px;
  margin: 12px 4px 0;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.viewer__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--clay);
}
@media (prefers-reduced-motion: no-preference) {
  .viewer__bar.is-run { animation: viewer-grow 1.6s linear; }
}
@keyframes viewer-grow { to { width: 100%; } }
.viewer__switch {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.viewer__switch:hover { background: #fff; }
.viewer__picks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 360px);
}
.viewer__picks button {
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  cursor: pointer;
}
.viewer__picks button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf4;
}
.viewer__note {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.pair h2 { max-width: 16ch; }
.pair__lead {
  max-width: 34rem;
  margin: 10px 0 0;
}
.pair__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 16px;
}
.pair__cta { margin-top: 16px; }
.pair figure {
  margin: 0;
  background: var(--card);
  border-radius: 18px;
  padding: 8px 8px 12px;
  box-shadow: var(--shadow);
}
.pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
}
.pair figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
}
.faq { display: grid; gap: 12px; }
.faq h2 { margin-bottom: 4px; }
.faq article {
  padding: 14px 16px;
  background: var(--card);
  border-radius: 18px;
}
.faq h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.faq p { margin: 0; color: var(--muted); }
.points {
  display: grid;
  gap: 14px;
}
.points__n {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.points article {
  padding: 22px;
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.points__wide {
  background: var(--blush);
  border-color: transparent;
}
.points p { margin: 10px 0 0; color: var(--muted); }

.band {
  background: #ebe2d4;
  border-top: 1px solid rgba(44, 36, 28, 0.06);
  border-bottom: 1px solid rgba(44, 36, 28, 0.06);
}
.order {
  display: grid;
  gap: 22px;
  align-items: start;
}
.steps { margin: 16px 0 0; padding-left: 18px; color: var(--muted); }
.steps li + li { margin-top: 8px; }
.card {
  background: var(--card);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 14px; font-weight: 700; }
.field .field__hint { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px;
  border: 1px dashed #c9b5a2;
  border-radius: 12px;
  background: #fff;
}
.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file__button {
  position: relative;
  border-radius: 999px;
  background: var(--paper-deep);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.file__name {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.parents {
  margin: 6px 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--blush);
}
.parents.is-warn { outline: 1px solid var(--gold); }
.parents__title { margin: 0; font-weight: 700; }
.parents__hint { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.form-error, .form-ok, .pay-link { margin: 0 0 12px; }
.pay-link { width: 100%; }
.form-error { color: var(--clay-deep); font-weight: 700; }
.form-ok { color: #31543a; background: var(--sage); padding: 10px 12px; border-radius: 12px; }
.form-actions { display: grid; gap: 10px; }
.form-actions .btn { width: 100%; }
.form-actions .btn--pay { order: -1; }
.pay-note { margin: 12px 0 0; font-size: 14px; }
.result-lead, .result-wait { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.result-wait { color: var(--ink); }
#download-all { margin-bottom: 14px; }
.result-share {
  display: block;
  margin: 0 0 14px;
  text-align: center;
  color: var(--clay-deep);
  font-weight: 700;
}
.result-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.result-photos figure { margin: 0; }
.result-photos img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.result-photos figcaption { margin-top: 4px; text-align: center; font-size: 14px; }
.result-new {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--clay);
}
.consent a { color: var(--clay-deep); }
.foot {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.foot__note {
  max-width: 36rem;
  margin: 0 0 22px;
}
.foot__grid {
  display: grid;
  gap: 22px;
}
.foot__label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot__links {
  display: grid;
  gap: 6px;
}
.foot__links a {
  color: var(--clay-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}
.foot__legal, .foot__pay {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.foot__legal + .foot__legal { margin-top: 2px; }
.foot__pay { margin-top: 22px; max-width: 28rem; }
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 72px;
}
.doc h1 { max-width: none; font-size: 40px; }
.doc h2 { margin-top: 28px; font-size: 28px; }
.doc p, .doc li { margin: 10px 0; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc a { color: var(--clay-deep); }
.doc__back { margin-bottom: 18px; font-weight: 600; }
.contacts { display: grid; gap: 16px; margin: 22px 0 0; }
.contacts div { display: grid; gap: 4px; }
.contacts dt {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contacts dd { margin: 0; font-size: 20px; font-weight: 700; }
.contacts a { color: var(--clay-deep); }
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: #2c241c;
  color: #f6efe6;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(44, 36, 28, 0.25);
}
.dock a {
  text-decoration: none;
  background: var(--clay);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}
.dock[hidden] { display: none; }

@media (min-width: 900px) {
  body { font-size: 17px; }
  .top__inner { padding: 18px 20px; }
  .brand { font-size: 28px; }
  .hero, .pair, .points, .faq, .order, .foot { padding: 28px 20px; }
  .pair__row { width: min(100%, 640px); }
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas:
      "copy photos"
      "cta photos";
    gap: 12px 40px;
    align-items: center;
    padding-top: 36px;
  }
  .hero__copy { grid-area: copy; }
  .hero__actions { grid-area: cta; align-self: start; }
  .viewer { grid-area: photos; }
  .viewer__frame { width: min(100%, 340px); }
  .slide figcaption { font-size: 40px; }
  h1 { font-size: 56px; max-width: 14ch; }
  h1 em { white-space: nowrap; }
  .lead { font-size: 18px; }
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; }
  .hero__actions .btn { width: auto; }
  .hero__note { text-align: left; }
  .form-actions .btn { width: auto; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .points__wide { grid-column: 1 / -1; }
  .order { grid-template-columns: 0.85fr 1.15fr; padding-bottom: 64px; }
  .form-actions { display: block; }
  .foot { padding-bottom: 28px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doc { padding: 36px 20px 80px; }
  .doc h1 { font-size: 52px; }
  .dock { display: none; }
}

.order-page h1 {
  max-width: 16ch;
  margin: 0;
  font-size: 40px;
}
.order-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 16px 64px;
}
.order-stack { display: flex; flex-direction: column; }
.order-stack #order-ready { order: -1; }
.order-lead, .order-note { color: var(--muted); max-width: 38rem; }
.order-meter {
  height: 8px;
  margin: 22px 0 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
}
.order-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--clay);
}
.order-percent { margin: 0 0 18px; font-weight: 700; }
.gallery {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.gallery__stage {
  margin: 0;
  padding: 12px 12px 8px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.gallery__frame { position: relative; }
.gallery__spin {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(44, 36, 28, 0.16);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(44, 36, 28, 0.18);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}
@keyframes gallery-spin { to { transform: rotate(360deg); } }
.gallery__thumbs button.gallery__wait {
  display: grid;
  place-items: center;
  height: 96px;
  background: #efe6da;
  cursor: default;
}
.gallery__stage img {
  width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 18px;
  background: #efe6da;
}
.gallery__tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.gallery__tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(44, 36, 28, 0.16);
  cursor: pointer;
  text-decoration: none;
}
.gallery__tool svg { width: 20px; height: 20px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 22, 18, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.share {
  margin-top: 28px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: var(--blush);
}
.share__title { margin: 0; font-weight: 700; }
.share__lead { margin: 6px 0 14px; color: var(--muted); }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.share__btn--tg { background: #2aabee; }
.share__btn--wa { background: #25d366; }
.share__btn--vk { background: #0077ff; }
.share__btn--copy { background: var(--ink); }
.share__done { margin: 10px 0 0; font-weight: 700; }
.share-cta {
  margin-top: 28px;
  padding: 22px 16px;
  text-align: center;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.share-cta__kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.share-cta .btn { text-decoration: none; }
.share-cta__note { margin: 12px 0 0; color: var(--muted); }
.share-save {
  display: inline-block;
  margin-top: 14px;
  color: var(--clay-deep);
  font-weight: 700;
}
.install {
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: var(--sage);
}
.install__title { margin: 0; font-weight: 700; }
.install__lead { margin: 6px 0 12px; color: var(--muted); }
.install__steps { margin: 0; padding-left: 1.2em; }
.install .btn { margin-top: 8px; }
.order-again { margin: 28px 0 0; }
.order-again a { color: var(--clay-deep); font-weight: 700; }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.92);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gallery__stage figcaption {
  margin: 8px 0 4px;
  text-align: center;
  font-family: var(--serif);
  font-size: 36px;
}
.gallery__nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 22px;
}
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery__thumbs button {
  flex: 0 0 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
}
.gallery__thumbs img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}
.gallery__thumbs button.is-on { border-color: var(--clay); }
.gallery__thumbs span {
  display: block;
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.gallery__actions .btn { text-decoration: none; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__nav { display: none; }
  .order-page h1 { font-size: 34px; }
}
