:root {
  --page-bg: #e9edbf;
  --phone-bg: #fffefb;
  --ink: #050505;
  --muted: #9a9a91;
  --line: #eeeeea;
  --accent: #b8c64b;
  --accent-dark: #8f9c2d;
  --accent-soft: #eef3c6;
  --danger: #c04747;
  --warning: #9a741b;
  --success: #348257;
  --text-heading: #333333;
  --text-subtitle: #8f9c2d;
  --text-button: #ffffff;
  --text-caption: #9a9a91;
  --button-bg: #333333;
  --font-heading: "Trebuchet MS", "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  --font-body: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --heading-size: 30px;
  --heading-weight: 800;
  --heading-line-height: 1.12;
  --subtitle-size: 15px;
  --subtitle-weight: 400;
  --subtitle-line-height: 1.45;
  --button-text-size: 14px;
  --button-text-weight: 500;
  --button-line-height: 1.2;
  --caption-size: 13px;
  --caption-weight: 400;
  --caption-line-height: 1.4;
  --shadow-phone: 0 30px 58px rgba(76, 82, 30, 0.28), 0 8px 18px rgba(76, 82, 30, 0.12);
  --shadow-card: 0 18px 34px rgba(0, 0, 0, 0.08);
  --radius-phone: 44px;
  --radius-card: 28px;
  --radius-tile: 18px;
  --media-ratio: 1.45 / 1;
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  background: var(--page-bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden,
.screen {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  min-height: 860px;
  max-height: none;
  overflow: hidden;
  border-radius: var(--radius-phone);
  background: var(--phone-bg);
  box-shadow: var(--shadow-phone);
}

.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 30px 38px 10px;
  background: transparent;
}

.brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.brand span {
  display: block;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.logo-chip {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 46px;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f8f8f8;
  box-shadow: none;
  color: #333;
  text-decoration: none;
}

.logo-chip span {
  display: block;
  font-family: "Avenir Next Rounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.quota-pill {
  position: relative;
  z-index: 6;
  max-width: 132px;
  margin: 8px 70px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #687017;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.wizard {
  position: relative;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 0 36px 38px;
  scrollbar-width: none;
}

.wizard::-webkit-scrollbar,
.catalog-scroll::-webkit-scrollbar {
  display: none;
}

.progress-card {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 2px 0 12px;
  background: linear-gradient(180deg, var(--phone-bg) 72%, rgba(255, 254, 251, 0));
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

#step-counter {
  font-weight: 500;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.progress-step {
  position: relative;
  width: 100%;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.progress-step::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  border-radius: 999px;
  background: #e1e1dc;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.progress-step.is-reached::before {
  background: var(--accent);
}

.progress-step.is-current::before {
  box-shadow: 0 0 0 3px rgba(184, 198, 75, 0.16);
}

.progress-step:not(:disabled):active::before {
  transform: scaleY(1.45);
}

.progress-step:disabled {
  cursor: default;
  opacity: 1;
}

.app.is-generating .progress-meta {
  justify-content: flex-start;
}

.app.is-generating #step-counter {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.app.is-generating .progress-steps {
  gap: 0;
}

.app.is-generating .progress-step::before {
  border-radius: 0;
  background:
    repeating-linear-gradient(
      115deg,
      var(--accent) 0 12px,
      #d9e37d 12px 24px
    );
  background-size: 48px 100%;
  animation: progressAnts 900ms linear infinite;
}

.app.is-generating .progress-step:first-child::before {
  border-radius: 999px 0 0 999px;
}

.app.is-generating .progress-step:last-child::before {
  border-radius: 0 999px 999px 0;
}

.app.is-generating .progress-step.is-current::before {
  box-shadow: none;
}

.screen.is-active {
  display: grid !important;
  gap: 20px;
}

.app:has(.screen[data-step="1"].is-active) .progress-meta {
  visibility: hidden;
}

.app:has(.screen[data-step="1"].is-active) .progress-steps {
  gap: 0;
}

.app:has(.screen[data-step="1"].is-active) .progress-step::before {
  border-radius: 0;
  background: #e1e1dc;
  box-shadow: none;
}

.app:has(.screen[data-step="1"].is-active) .progress-step:first-child::before {
  border-radius: 999px 0 0 999px;
}

.app:has(.screen[data-step="1"].is-active) .progress-step:last-child::before {
  border-radius: 0 999px 999px 0;
}

.app:has(.screen[data-step="1"].is-active) .wizard-actions {
  display: none;
}

.app:has(.screen[data-step="1"].is-active) .quota-pill,
.app:has(.screen[data-step="2"].is-active) .quota-pill,
.app:has(.screen[data-step="3"].is-active) .quota-pill,
.app:has(.screen[data-step="1"].is-active) #step-title,
.app:has(.screen[data-step="2"].is-active) #step-title,
.app:has(.screen[data-step="3"].is-active) #step-title {
  display: none;
}

.hero-card,
.step-card {
  min-width: 0;
}

.hero-card {
  display: grid;
  gap: 18px;
  padding-top: 24px;
}

.step-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-card .step-label {
  color: var(--muted);
}

.hero-card h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  font-size: clamp(32px, 8.1vw, 38px);
  font-weight: 800;
  line-height: 1.12;
}

.screen[data-step="1"] .hero-card h1,
.screen[data-step="2"] .hero-card h1 {
  min-height: 114px;
}

.intro-title,
.upload-title {
  display: grid;
  min-width: 0;
  font-size: clamp(25px, 7.2vw, 29px) !important;
}

.intro-title span,
.upload-title span {
  display: block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 330px;
  margin: -2px 0 0;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.screen[data-step="1"] .hero-copy,
.screen[data-step="2"] .hero-copy {
  min-height: 4.35em;
}

.hero-visual {
  display: block;
  min-width: 0;
  aspect-ratio: var(--media-ratio);
  margin: 10px 0 0;
  overflow: hidden;
  border-radius: 28px;
  background: #ece6dc;
  box-shadow: var(--shadow-card);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.catalog-hero-card {
  padding-top: 24px;
}

.catalog-hero-card h1 {
  max-width: 330px;
}

.catalog-hero-card .hero-copy {
  margin-top: -2px;
}

.upload-hero-card {
  padding-top: 24px;
}

.quick-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 126px;
  gap: 14px;
  margin-top: 18px;
}

.quick-benefits span {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-tile);
  background: #d8ecf2;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}

.quick-benefits span:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.45) 100%),
    url("/assets/teddy/colors/rose.webp") center / contain no-repeat,
    #d8eef2;
}

.quick-benefits span:nth-child(2) {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.38) 100%),
    url("/assets/teddy/colors/brown.webp") center / contain no-repeat,
    #f0eee8;
}

.quick-benefits span:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.48) 100%),
    url("/assets/teddy/colors/mint.webp") center / contain no-repeat,
    #dff0e8;
}

.primary-btn,
.secondary-btn,
.show-more-reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(154, 168, 42, 0.26);
}

#start-btn {
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.22);
}

.start-assurance {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.secondary-btn,
.show-more-reviews-btn {
  border: 1px solid #eeeeea;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.primary-btn:active,
.secondary-btn:active,
.show-more-reviews-btn:active {
  transform: translateY(1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.show-more-reviews-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.upload-area {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(184, 198, 75, 0.88), rgba(184, 198, 75, 0.88)) top / 100% 42% no-repeat,
    #f7f7f2;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.upload-hero {
  min-height: auto;
  margin: 10px 0 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.upload-media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  border-radius: 28px;
  background: #ece6dc;
  box-shadow: var(--shadow-card);
}

.upload-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: center;
}

.upload-empty img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.upload-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.upload-area--with-photo {
  background: transparent;
}

.upload-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(5, 5, 5, 0.22);
  pointer-events: none;
}

.upload-spinner {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(255, 255, 255, 0.52);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.upload-check {
  display: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 24px rgba(52, 130, 87, 0.24);
}

.upload-area--ready .upload-spinner {
  display: none;
}

.upload-area--ready .upload-check {
  display: block;
}

#upload-next-btn {
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.22);
}

#upload-status.status--success {
  display: block;
  min-height: 0;
  margin: -4px auto 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

#upload-status:disabled {
  border: 0;
  background: transparent;
  cursor: default;
}

#upload-status.status--warning {
  color: var(--warning);
  text-align: center;
}

.catalog-shell {
  position: relative;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.catalog-scroll {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 18px calc(50% - 82px) 34px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.catalog-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 12px 22px rgba(20, 22, 24, 0.18);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.catalog-arrow--prev {
  left: 4px;
}

.catalog-arrow--next {
  right: 4px;
}

.product-card {
  flex: 0 0 164px;
  min-width: 0;
  height: 232px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  scroll-snap-align: center;
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  opacity: 0.78;
}

.product-card--selected,
.product-card--center {
  box-shadow: 0 0 0 4px var(--accent), 0 22px 38px rgba(154, 168, 42, 0.22);
  opacity: 1;
}

.product-card--center {
  position: relative;
  z-index: 2;
  transform: scale(1.08);
  opacity: 1;
}

.product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 164px;
  padding: 0;
  overflow: hidden;
  background: #f7f7f1;
}

.product-thumb img {
  display: block;
  width: 112%;
  height: 112%;
  object-fit: contain;
  filter: none;
}

.badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #4c4f52;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-info {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.product-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.product-price {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.summary-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.summary-card > div {
  padding: 18px;
}

.summary-card > div + div {
  border-top: 1px dashed #deded6;
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 950;
}

.magic-card h1 {
  max-width: 330px;
}

.magic-preview {
  position: relative;
  display: grid;
  gap: 22px;
}

.magic-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #f7f7f1;
  box-shadow: var(--shadow-card);
  aspect-ratio: var(--media-ratio);
}

.magic-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magic-frame--sofa {
  background: #efefef;
}

.magic-frame--sofa img {
  width: 205%;
  height: 100%;
  margin-left: -52.5%;
  padding: 0;
  object-fit: contain;
}

.magic-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #65a52d;
  color: #fff;
  box-shadow: 0 14px 28px rgba(68, 111, 29, 0.26);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.magic-frame figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(76, 79, 82, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

#generate-btn {
  margin-top: 4px;
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.22);
}

.generation-note {
  max-width: 320px;
  margin: -6px auto 0;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.app.is-generating .magic-card > h1,
.app.is-generating #generate-btn,
.app.is-generating .generation-note,
.app.is-generating .generation-result-note,
.app.is-generating #status,
.app.is-generating .wizard-actions {
  display: none;
}

.app:has(.screen[data-step="4"].is-active) .quota-pill,
.app:has(.screen[data-step="4"].is-active) #step-title {
  display: none;
}

.app:has(.screen[data-step="4"].is-active) .wizard-actions {
  display: none;
}

.app:has(.screen[data-step="4"].is-active) #next-btn {
  display: none;
}

.app:has(.screen[data-step="4"].is-active) #back-btn {
  width: auto;
  min-width: 104px;
  min-height: 42px;
  padding: 0 18px;
  border-color: #eeeeea;
  background: #f7f7f1;
  color: #7b7b73;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.status--success {
  color: var(--success);
}

.status--warning {
  color: var(--warning);
}

.status--error {
  color: var(--danger);
}

.result-area {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 286px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(184, 198, 75, 0.92) 0 45%, transparent 45%),
    #f8f8f3;
  box-shadow: var(--shadow-card);
}

.app.is-generating .result-area {
  min-height: 600px;
  margin-top: 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-area--has-image {
  background: #111;
}

.placeholder-text {
  display: grid;
  place-items: center;
  width: calc(100% - 48px);
  min-height: 190px;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.08);
}

.generation-error {
  display: grid;
  gap: 14px;
  width: calc(100% - 48px);
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.08);
}

.generation-error p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.result-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 286px;
  object-fit: contain;
  background: #111;
}

.loader {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.generation-slide {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin-top: -15px;
  overflow: hidden;
  border-radius: 28px;
  background: #f7f7f1;
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}

.generation-slide-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--media-ratio);
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.generation-slide-copy {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 24px 22px 0;
  text-align: left;
}

.generation-slide-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.generation-slide-copy p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.38;
  white-space: pre-line;
}

.generation-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 20px;
}

.generation-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8cf;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.generation-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--accent);
}

.app.is-result .progress-card,
.app.is-result .wizard-actions {
  display: none;
}

.app.is-result .quota-pill {
  display: none;
}

.result-page {
  display: grid;
  gap: 22px;
  padding: 26px 0 10px;
}

.result-page-copy {
  display: grid;
  gap: 12px;
}

.result-page-copy h1 {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  font-size: clamp(31px, 7.7vw, 37px);
  font-weight: 800;
  line-height: 1.1;
}

.result-page-copy p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.result-offer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.result-offer-list li {
  position: relative;
  padding-left: 20px;
}

.result-offer-list li::before {
  content: "—";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--text-subtitle);
}

.final-result-frame {
  margin: 0;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  border-radius: 28px;
  background: #ece6dc;
  box-shadow: var(--shadow-card);
}

.final-result-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#final-download-btn {
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.22);
}

.result-reviews {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.result-reviews > h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.result-reviews > h2 span {
  color: #8f8f8f;
  font-size: 18px;
  font-weight: 600;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #eef0cf;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loader-time-label,
.loader-reviews-label {
  margin: 0 0 5px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.loader-time-value {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.loader-reviews {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: #f7f8ed;
}

.loader-review-stars {
  margin: 0 0 8px;
  color: var(--accent);
}

.loader-review-quote {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.loader-review-author {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.download-btn,
.product-link {
  margin-top: 12px;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.purchase-card,
.benefit-card,
.customer-review-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.purchase-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
}

.purchase-summary {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.purchase-summary img {
  width: 82px;
  height: 68px;
  object-fit: contain;
  border-radius: 18px;
  background: var(--accent-soft);
}

.purchase-summary strong,
.purchase-summary span {
  display: block;
  min-width: 0;
}

.purchase-summary strong {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.12;
}

.purchase-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9f9f4;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 198, 75, 0.24);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.benefits-section,
.reviews-section {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.benefits-grid,
.reviews-list {
  display: grid;
  gap: 12px;
}

.benefit-card,
.customer-review-card {
  padding: 16px;
}

.customer-review-card {
  padding: 18px;
  border: 1px solid #ececea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.benefit-card h2 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.08;
}

.benefit-card p {
  margin: 0;
  color: #77776f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.customer-review-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
}

.customer-review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffdf74;
  color: #252525;
  font-size: 17px;
  font-weight: 700;
}

.customer-review-card:nth-child(3n + 2) .customer-review-avatar {
  background: #d8eaff;
}

.customer-review-card:nth-child(3n) .customer-review-avatar {
  background: #ddefc7;
}

.customer-review-author {
  min-width: 0;
}

.customer-review-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.customer-review-product {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 9px;
}

.customer-review-stars {
  color: #fc0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.customer-review-score {
  color: #6f6f6f;
  font-size: 12px;
  font-weight: 500;
}

.customer-review-text {
  margin: 0;
  color: #262626;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.52;
  white-space: pre-line;
}

.wizard-actions {
  position: static;
  z-index: 8;
  display: none;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  background: transparent;
  justify-items: center;
}

.app:has(.screen[data-step="2"].is-active) .wizard-actions {
  display: none;
}

.app:has(.screen[data-step="2"].is-active) #next-btn {
  display: none;
}

.app:has(.screen[data-step="2"].is-active) #back-btn {
  width: auto;
  min-width: 188px;
  min-height: 42px;
  padding: 0 18px;
  border-color: #eeeeea;
  background: #f7f7f1;
  color: #7b7b73;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.app:has(.screen[data-step="3"].is-active) .wizard-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.app:has(.screen[data-step="3"].is-active) #back-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 104px;
  min-height: 42px;
  padding: 0 18px;
  border-color: #eeeeea;
  background: #f7f7f1;
  color: #7b7b73;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.app:has(.screen[data-step="3"].is-active) #next-btn {
  flex: 0 0 auto;
  width: 100%;
  background: #4c4f52;
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.22);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
  padding: 24px;
  border-radius: 30px;
  background: var(--phone-bg);
  box-shadow: var(--shadow-phone);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.modal-dialog h2 {
  margin: 12px 34px 0 0;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.08;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
}

.site-menu.hidden {
  display: none !important;
}

.site-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 13, 0.28);
  backdrop-filter: blur(4px);
}

.site-menu-panel {
  position: absolute;
  top: max(22px, calc(50vh - 430px));
  left: 50%;
  width: min(354px, calc(100vw - 52px));
  max-height: min(720px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 24px;
  border-radius: 30px;
  background: #fffefb;
  box-shadow: 0 26px 58px rgba(39, 42, 22, 0.24);
  transform: translateX(-50%);
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.site-menu-head span {
  color: #2f3031;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.site-menu-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f1f1ea;
  color: #31322d;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.site-menu-links {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.site-menu-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f6ef;
  color: #252722;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.site-menu-contacts {
  display: grid;
  gap: 14px;
}

.site-menu-contacts p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.messenger-row {
  display: flex;
  gap: 10px;
}

.messenger-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.messenger-icon img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #050505;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressAnts {
  to {
    background-position: 48px 0;
  }
}

@media (min-width: 1040px) {
  body {
    padding: 70px 42px;
  }

  body::before,
  body::after {
    content: none;
    display: none;
  }

  .app {
    z-index: 2;
  }
}

@media (min-width: 461px) and (max-height: 850px) {
  body {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .app {
    min-height: auto;
  }

  .header {
    min-height: 74px;
    padding-top: 24px;
    padding-bottom: 4px;
  }

  .wizard {
    padding-bottom: 30px;
  }

  .hero-card {
    gap: 12px;
    padding-top: 16px;
  }

  .hero-card h1 {
    font-size: 33px;
    line-height: 1.1;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.35;
  }

  .hero-visual {
    margin-top: 6px;
    border-radius: 24px;
  }

  .primary-btn,
  .secondary-btn,
  .show-more-reviews-btn {
    min-height: 54px;
  }
}

@media (min-width: 461px) and (min-height: 851px) {
  .app:has(.screen[data-step="3"].is-active) .wizard-actions {
    margin-top: 40px;
  }
}

.app .primary-btn {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #333 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 460px) {
  .catalog-arrow {
    display: none;
  }

  body {
    display: block;
    padding: 0;
    background: var(--phone-bg);
  }

  .app {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .header {
    padding: 28px 26px 8px;
  }

  .wizard {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 26px 32px;
  }

  .catalog-scroll {
    margin: 0;
    padding-right: calc(50% - 82px);
    padding-left: calc(50% - 82px);
  }

  .app:has(.screen[data-step="3"].is-active) .progress-card {
    left: 26px;
    right: 26px;
  }

  .wizard-actions {
    position: static;
    padding: 0;
  }

  .hero-card h1 {
    font-size: 34px;
  }
}

.original-app {
  min-height: 720px;
}

.original-header {
  justify-content: space-between;
}

.original-back {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.original-main {
  display: grid;
  gap: 34px;
  padding: 62px 36px 54px;
  text-align: center;
}

.original-title {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  letter-spacing: 0;
}

.original-messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.original-messenger {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.original-messenger img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.original-messenger:active img {
  transform: scale(0.96);
}

.original-gift {
  max-width: 310px;
  margin: 0 auto;
  color: var(--text-subtitle);
  font-family: var(--font-body);
  font-size: var(--subtitle-size);
  font-weight: var(--subtitle-weight);
  line-height: var(--subtitle-line-height);
}

.original-status {
  min-height: 38px;
  margin: -12px auto 0;
  color: var(--text-caption);
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  line-height: var(--caption-line-height);
}

@media (max-width: 460px) {
  .original-app {
    min-height: 100vh;
  }

  .original-main {
    padding: 72px 26px 42px;
  }

  .original-messenger img {
    width: 68px;
    height: 68px;
  }
}

/* Canonical text roles. Keep these selectors last; see TYPOGRAPHY.md. */
.hero-card h1,
.result-page-copy h1,
.generation-slide-copy h2 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  letter-spacing: 0;
}

.intro-title {
  font-size: var(--heading-size) !important;
}

.intro-title,
.upload-title {
  align-content: start;
  grid-auto-rows: max-content;
  row-gap: 6px;
  min-height: 0 !important;
  font-size: var(--heading-size) !important;
}

.hero-copy,
.result-page-copy p,
.generation-slide-copy p,
.generation-note {
  margin-top: 0;
  color: var(--text-subtitle);
  font-family: var(--font-body);
  font-size: var(--subtitle-size);
  font-weight: var(--subtitle-weight);
  line-height: var(--subtitle-line-height);
  letter-spacing: 0;
}

.intro-steps {
  display: grid;
  gap: 4px;
}

.intro-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.intro-steps b {
  display: inline-grid;
  flex: 0 0 19.2px;
  place-items: center;
  width: 19.2px;
  height: 19.2px;
  border-radius: 50%;
  background: var(--button-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.app .primary-btn {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg) !important;
  color: var(--text-button) !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: var(--button-text-size);
  font-weight: var(--button-text-weight);
  line-height: var(--button-line-height);
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.start-assurance,
.generation-result-note,
.result-assurance,
#upload-status:not(.status--error):not(.status--warning) {
  min-height: 18.2px;
  max-width: 320px;
  margin: -6px auto 0;
  padding: 0;
  color: var(--text-caption);
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  line-height: var(--caption-line-height);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}

.generation-note {
  max-width: none;
  margin: 0;
  text-align: left;
}

#upload-next-btn {
  margin-top: 8px;
}

.app:has(.screen[data-step="3"].is-active) .wizard-actions {
  margin-top: 42px;
}

.app:has(.screen[data-step="4"].is-active) .wizard {
  padding-bottom: 83px;
}

@media (max-width: 460px) {
  .app:has(.screen[data-step="3"].is-active) .wizard-actions {
    margin-top: 29px;
  }

  .app:has(.screen[data-step="4"].is-active) .wizard {
    padding-bottom: 80px;
  }
}
