:root {
  --bg: #f7f0e6;
  --panel: rgba(255, 250, 244, 0.72);
  --panel-strong: rgba(255, 250, 244, 0.9);
  --text: #6a5445;
  --text-strong: #3d2f28;
  --muted: #927969;
  --gold: #b88d56;
  --rose: #e8c2bf;
  --seafoam: #cfe6e1;
  --shadow: 0 18px 40px rgba(129, 96, 72, 0.12);
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --ease: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(244, 213, 197, 0.82), transparent 28%),
    radial-gradient(circle at bottom right, rgba(207, 230, 225, 0.74), transparent 24%),
    linear-gradient(180deg, #fcf7f2 0%, #f6eee4 48%, #f8f2eb 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 34px;
}

.app-copy {
  position: sticky;
  top: 24px;
  align-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text-strong);
}

.brand-mark__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #dbc6a3);
  box-shadow: 0 0 0 6px rgba(184, 141, 86, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(97, 76, 61, 0.68);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 5rem);
  max-width: 10ch;
}

.lede,
.section-head p:last-child,
.hero-panel__copy p:last-child,
.story,
.success-panel p,
.photo-placeholder span,
.upload-hero p,
.catalog-card__content p {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.browser-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-strong);
  background: rgba(255, 249, 243, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
}

.device-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  min-height: 844px;
  padding: 18px 14px 16px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(249, 241, 233, 0.92), rgba(245, 236, 227, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 42px 82px rgba(118, 87, 60, 0.18);
  position: relative;
  overflow: hidden;
}

.phone-frame__header {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.phone-frame__island {
  width: 110px;
  height: 28px;
  border-radius: 999px;
  background: rgba(66, 57, 49, 0.92);
}

.telegram-topbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.telegram-topbar__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.telegram-topbar__subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(97, 76, 61, 0.58);
}

.icon-button {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: rgba(255, 249, 243, 0.58);
  color: var(--text-strong);
  box-shadow: var(--shadow);
}

.screen-stack {
  position: relative;
  min-height: 692px;
  height: 692px;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 0 2px 116px 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transform: translateY(24px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.glass-card,
.hero-panel,
.progress-card,
.upload-hero,
.review-preview,
.success-panel,
.detail-card,
.catalog-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.78), rgba(255, 247, 241, 0.56)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-panel,
.progress-card,
.upload-hero,
.review-preview,
.success-panel,
.detail-card,
.catalog-card {
  border-radius: var(--radius-lg);
}

.hero-panel {
  padding: 22px;
}

.hero-panel__visual,
.review-preview__cover,
.detail-card__hero,
.catalog-card__image {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 241, 214, 0.96), transparent 18%),
    linear-gradient(180deg, rgba(245, 206, 182, 0.42), rgba(183, 217, 215, 0.55) 62%, rgba(250, 243, 235, 0.96));
  background-size: cover;
  background-position: center;
}

.hero-sun {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 88px;
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 229, 1), rgba(243, 208, 183, 0.86) 70%, transparent 72%);
}

.hero-card,
.review-preview__tag,
.review-preview__rating {
  position: absolute;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.56);
  box-shadow: var(--shadow);
}

.hero-card {
  left: 16px;
  bottom: 16px;
}

.hero-card p {
  margin: 0;
  color: var(--text-strong);
}

.hero-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(97, 76, 61, 0.64);
}

.hero-panel__actions,
.dual-actions,
.floating-cta {
  display: flex;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: 20px;
  padding: 0 18px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.primary-button[disabled],
.secondary-button[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.primary-button {
  background: linear-gradient(135deg, #c79a63, #e9bfb7 56%, #d3e8e1);
  color: #3c3028;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(191, 151, 117, 0.24);
}

.secondary-button {
  background: rgba(255, 249, 243, 0.66);
  color: var(--text-strong);
  box-shadow: var(--shadow);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.bottom-bar__item:hover {
  transform: translateY(-1px);
}

.progress-card,
.upload-hero,
.success-panel,
.detail-card__body,
.catalog-card__content,
.review-preview__body {
  padding: 18px;
}

.progress-card__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.progress-bar {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(202, 165, 111, 0.9), rgba(213, 234, 228, 0.9));
}

.soft-form {
  display: grid;
  gap: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.field span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(97, 76, 61, 0.62);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 15px;
  resize: none;
}

.star-rating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.star-rating__star {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(184, 141, 86, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  font-size: 22px;
  transition:
    transform var(--ease),
    background var(--ease),
    color var(--ease),
    box-shadow var(--ease);
}

.star-rating__star.is-active {
  color: var(--gold);
  background: rgba(255, 246, 230, 0.92);
  box-shadow:
    0 10px 18px rgba(184, 141, 86, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.star-rating__star:hover {
  transform: translateY(-1px);
}

.field--textarea {
  min-height: 120px;
}

.upload-native {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.upload-native__hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-native__fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.upload-native__field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 249, 243, 0.66);
  box-shadow: var(--shadow);
}

.upload-native__field span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.upload-native__field input[type="file"] {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
}

.upload-native__field input[type="file"]::file-selector-button {
  min-height: 48px;
  margin-right: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #c79a63, #e9bfb7 56%, #d3e8e1);
  color: #3c3028;
  font-weight: 700;
  cursor: pointer;
}

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.upload-meta strong {
  display: block;
  color: var(--text-strong);
}

.upload-meta p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(97, 76, 61, 0.7);
}

.upload-hero__icon,
.success-panel__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239, 216, 180, 0.92), rgba(213, 234, 228, 0.92));
  color: var(--text-strong);
  font-size: 28px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-grid--detail {
  margin-top: 18px;
}

.photo-card,
.photo-placeholder {
  padding: 12px;
  border-radius: var(--radius-md);
  min-height: 178px;
  position: relative;
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.photo-card__meta {
  padding-top: 10px;
}

.photo-card__badge,
.photo-card__remove {
  position: absolute;
  top: 12px;
  z-index: 2;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  backdrop-filter: blur(16px);
}

.photo-card__badge {
  left: 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 248, 239, 0.86);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
}

.photo-card__remove {
  right: 12px;
  width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 239, 0.9);
  color: #8f5b51;
  box-shadow: var(--shadow);
}

.photo-card__surface {
  cursor: pointer;
}

.photo-card.is-cover {
  box-shadow:
    0 18px 40px rgba(129, 96, 72, 0.12),
    0 0 0 2px rgba(201, 157, 109, 0.3);
}

.photo-card__meta strong {
  display: block;
  color: var(--text-strong);
}

.photo-card__meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(97, 76, 61, 0.58);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
}

.status-message {
  min-height: 24px;
  margin-top: 12px;
  padding-inline: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(97, 76, 61, 0.84);
}

.status-message.is-error {
  color: #9a5d52;
}

.status-message.is-success {
  color: #56786d;
}

.review-preview__tag {
  left: 16px;
  top: 16px;
}

.review-preview__rating {
  left: 16px;
  bottom: 16px;
}

.review-preview__header,
.catalog-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mini-badge,
.chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.64);
  color: var(--text-strong);
}

.insight-grid,
.detail-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.insight-grid div,
.detail-highlights div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 249, 243, 0.56);
}

.insight-grid span,
.detail-highlights span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(97, 76, 61, 0.56);
  margin-bottom: 6px;
}

.success-panel {
  text-align: center;
}

.catalog-list {
  display: grid;
  gap: 14px;
}

.catalog-card {
  overflow: hidden;
}

.catalog-card__image {
  min-height: 160px;
}

.status-message {
  min-height: 22px;
  font-size: 14px;
  color: #9f5e46;
}

.bottom-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.bottom-bar__item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 18px;
  background: transparent;
  color: rgba(97, 76, 61, 0.68);
}

.bottom-bar__item.is-active {
  background: linear-gradient(135deg, rgba(239, 215, 181, 0.88), rgba(232, 194, 191, 0.74));
  color: var(--text-strong);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-copy {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .app-shell {
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .app-copy {
    display: none;
  }

  .device-stage {
    width: 100%;
  }

  .phone-frame {
    min-height: 100vh;
    border-radius: 0;
    padding: 14px 12px 12px;
    box-shadow: none;
    border: 0;
  }

  .screen-stack {
    min-height: calc(100vh - 140px);
    height: calc(100vh - 140px);
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: 100%;
  }

  .phone-frame {
    min-height: 100vh;
  }

  .screen-stack {
    min-height: calc(100vh - 136px);
    height: calc(100vh - 136px);
  }

  .field-grid,
  .photo-grid,
  .insight-grid,
  .detail-highlights {
    grid-template-columns: 1fr;
  }

  .upload-native__hero {
    align-items: flex-start;
  }
}
