:root {
  --max: 1180px;
  --tone-a: var(--ds-color-accent);
  --tone-b: var(--ds-color-surface-soft);
  --tone-c: #b88d55;
  --tone-d: var(--ds-color-surface-soft);
  --header-height: 62px;
  --header-offset: calc(var(--header-height) + 18px);
  --framed-section-width: min(100% - 24px, var(--max));
  --framed-section-radius: 36px;
  --framed-section-padding: clamp(28px, 5vw, 64px);
  --framed-title-size: clamp(32px, 4.2vw, 60px);
  --soft-section-bg:
    radial-gradient(circle at 18% 14%, rgba(181, 48, 111, 0.08), transparent 28%),
    linear-gradient(180deg, var(--ds-color-surface-soft) 0%, var(--ds-color-surface) 100%);
  --soft-section-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    var(--ds-shadow-md);
  --soft-pink-panel-bg:
    linear-gradient(145deg, var(--ds-color-surface) 0%, var(--ds-color-surface-pink) 100%);
  --soft-pink-card-bg:
    var(--ds-color-surface);
  --page-bg:
    radial-gradient(circle at 88% 16%, rgba(181, 48, 111, 0.07), transparent 24%),
    linear-gradient(180deg, var(--ds-color-surface-soft) 0%, var(--ds-color-canvas) 100%);
  --board-bg:
    linear-gradient(135deg, var(--ds-color-surface), var(--ds-color-surface-pink));
}

* {
  box-sizing: border-box;
  overflow-wrap: normal;
  word-break: keep-all;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-top: var(--header-offset);
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background: var(--page-bg);
  background-attachment: fixed;
  font-family: var(--ds-font-family);
}

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

:where(input, select, textarea) {
  max-width: 100%;
}

body.is-page-scroll-locked {
  position: fixed;
  top: calc(0px - var(--page-scroll-lock-y, 0px));
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.ambient__shape {
  position: absolute;
  border-radius: 45%;
  filter: blur(50px);
  opacity: 0.22;
  animation: floatGradient 12s ease-in-out infinite;
}

.ambient__shape--one {
  top: 5%;
  left: -18%;
  width: 48vw;
  height: 48vw;
  background: var(--tone-a);
}

.ambient__shape--two {
  right: -18%;
  bottom: 8%;
  width: 52vw;
  height: 52vw;
  background: var(--tone-b);
  animation-delay: -4s;
}

.ambient__shape--three {
  top: 36%;
  left: 40%;
  width: 34vw;
  height: 34vw;
  background: var(--tone-c);
  opacity: 0.22;
  animation-delay: -8s;
}

.ambient__light {
  position: absolute;
  top: -15%;
  left: -45%;
  width: 75vw;
  height: 135vh;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.12),
    transparent
  );
  filter: blur(12px);
  transform: rotate(15deg);
  animation: lightSweep 10s ease-in-out infinite;
}

.site-header,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 8px auto 0;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 8px 28px rgba(72, 39, 55, 0.06);
  backdrop-filter: blur(24px);
}

.site-header {
  position: fixed;
  top: max(6px, env(safe-area-inset-top));
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 18px;
}

.logo {
  display: grid;
  gap: 3px;
  letter-spacing: 0.08em;
}

.logo span {
  color: var(--ds-color-text);
  font-size: 0.88rem;
  font-weight: 900;
}

.logo small {
  color: var(--ds-color-text-muted);
  font-size: 0.55rem;
  font-weight: 800;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 14px;
  color: var(--ds-color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav__links a {
  padding: 10px 2px;
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-bold);
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-md);
}

.mobile-nav a {
  min-height: 44px;
  padding: 12px;
  border-radius: var(--ds-radius-md);
  color: var(--ds-color-text);
  font-size: 0.78rem;
  font-weight: var(--ds-font-weight-semibold);
}

.section {
  scroll-margin-top: var(--header-offset);
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  padding: clamp(48px, 5.5vw, 76px) 0;
}

.section-heading {
  display: grid;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-6);
}

.section-label {
  margin: 0;
  color: var(--ds-color-accent);
  font-size: var(--ds-font-size-label);
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 12px;
  margin: 0;
  color: var(--white);
}

h1 span {
  font-size: var(--ds-font-size-h1);
  font-weight: var(--ds-font-weight-bold);
  line-height: var(--ds-line-height-tight);
}

h1 small {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--ds-font-size-h3);
  font-weight: var(--ds-font-weight-semibold);
  line-height: var(--ds-line-height-heading);
}

h2 {
  max-width: 880px;
  margin: 0;
  color: var(--white);
  font-size: var(--ds-font-size-h2);
  font-weight: var(--ds-font-weight-bold);
  line-height: var(--ds-line-height-heading);
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: 0 18px 42px rgba(89, 28, 63, 0.22);
}

h3 {
  color: var(--white);
  margin-bottom: 0;
  font-size: var(--ds-font-size-h3);
  font-weight: var(--ds-font-weight-bold);
  line-height: var(--ds-line-height-heading);
  text-shadow: 0 12px 30px rgba(89, 28, 63, 0.18);
}

p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--ds-font-size-body);
  font-weight: var(--ds-font-weight-medium);
  line-height: var(--ds-line-height-body);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100% - 24px, var(--max));
  max-width: var(--max);
  min-height: min(620px, calc(100svh - var(--header-offset) - 16px));
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  overflow: visible;
  padding: 34px 0 46px;
  background: transparent;
}

.hero::after {
  display: none;
}

.hero__content,
.hero .live-board,
.hero .hero-phone {
  position: relative;
  z-index: 1;
}

.hero h1 span,
.hero h1 small,
.hero__text {
  color: var(--ink);
}

.hero h1 span {
  max-width: 8ch;
  font-size: clamp(4rem, 7vw, 6.4rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-shadow: none;
}

.hero h1 small,
.hero__text {
  color: var(--ds-color-text-muted);
}

.hero__content,
.gift-card,
.constructor-copy,
.checkout-card {
  display: grid;
  gap: 16px;
}

.hero__text {
  max-width: 590px;
  margin-bottom: 0;
  font-size: var(--ds-font-size-body-lg);
  line-height: var(--ds-line-height-body);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: min(560px, calc(100svh - var(--header-offset) - 72px));
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-lg);
}

.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 48px 0 64px;
}

.product-overview .section-label {
  color: var(--accent-dark);
}

.product-overview h2 {
  max-width: 620px;
  color: var(--accent-dark);
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  line-height: 1.04;
  text-shadow: none;
}

.product-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-overview__grid article {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.product-overview__grid span {
  color: var(--ds-color-accent);
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.12em;
}

.product-overview__grid strong {
  color: var(--ds-color-text);
  font-size: 1.05rem;
  font-weight: var(--ds-font-weight-bold);
}

.product-overview__grid small {
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: var(--ds-control-height);
  align-items: center;
  justify-content: center;
  padding: 0 var(--ds-space-5);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-pill);
  cursor: pointer;
  font-size: var(--ds-font-size-button);
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform var(--ds-motion-base) var(--ds-ease-standard),
    box-shadow var(--ds-motion-base) var(--ds-ease-standard),
    background-color var(--ds-motion-base) var(--ds-ease-standard);
}

.button:active:not(:disabled) {
  transform: scale(0.98);
}

.button[aria-busy="true"] {
  min-inline-size: var(--button-stable-width, auto);
  cursor: progress;
}

.button:disabled {
  cursor: not-allowed;
  color: var(--ds-color-text-subtle);
  background: var(--ds-color-disabled);
  box-shadow: none;
  opacity: 0.78;
}

.button--primary {
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
  box-shadow: var(--ds-shadow-sm);
}

.button--glass {
  border-color: var(--ds-color-border);
  color: var(--ds-color-text);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.button--light {
  border-color: var(--ds-color-border);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
}

.button:hover,
.style-tab:hover {
  transform: translateY(-3px);
}

.button:focus-visible,
.style-tab:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--ds-focus-ring);
}

.live-board,
.a3-preview,
.phone-result,
.filled-zones,
.library-card,
.gift-card,
.constructor-panel,
.phone-builder-card,
.phone-wallpaper-result,
.checkout-card {
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-md);
  backdrop-filter: blur(18px);
}

.live-board {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 249, 0.46)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 36px 110px rgba(84, 24, 62, 0.28);
  transform: translateZ(0);
}

.hero-phone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
  overflow: hidden;
}

.hero-phone__frame {
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(28, 16, 24, 0.96), rgba(90, 32, 64, 0.82));
  box-shadow:
    0 42px 120px rgba(64, 20, 48, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-phone__screen {
  position: relative;
  display: grid;
  min-height: 600px;
  overflow: hidden;
  padding: 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.64), transparent 18%),
    linear-gradient(145deg, #fff4d1, #ff9dc9 38%, #ffd55d 70%, #79c8c7);
}

.hero-phone__photo {
  position: absolute;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 22px 54px rgba(40, 12, 28, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: phoneAssemble 7s ease-in-out infinite;
}

.hero-phone__photo--one {
  inset: 3% auto auto 5%;
  width: 44%;
  height: 24%;
  background-image: url("assets/cabin-cinema.JPG");
}

.hero-phone__photo--two {
  inset: 4% 5% auto auto;
  width: 48%;
  height: 30%;
  background-image: url("assets/travel-plane.JPG");
  animation-delay: 0.7s;
}

.hero-phone__photo--three {
  inset: 30% auto auto 5%;
  width: 58%;
  height: 30%;
  background-image: url("assets/wellness-yoga.JPG");
  animation-delay: 1.1s;
}

.hero-phone__photo--four {
  inset: 35% 5% auto auto;
  width: 38%;
  height: 24%;
  background-image: url("assets/study-library.JPG");
  animation-delay: 1.55s;
}

.hero-phone__photo--five {
  inset: auto 6% 8% auto;
  width: 54%;
  height: 28%;
  background-image: url("assets/yacht-flowers.JPG");
  animation-delay: 1.9s;
}

.hero-phone__sticker,
.hero-phone__cutout,
.hero-phone__ribbon {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 10px 18px rgba(34, 12, 24, 0.18));
}

.hero-phone__sticker {
  color: #fff6b8;
  font-size: 2rem;
  font-weight: 950;
  animation: stickerWiggle 5s ease-in-out infinite;
}

.hero-phone__sticker--sun {
  top: 7%;
  left: 48%;
}

.hero-phone__sticker--heart {
  right: 18%;
  bottom: 32%;
  color: #ff4f7f;
  transform: rotate(-12deg);
}

.hero-phone__sticker--spark {
  left: 10%;
  bottom: 18%;
}

.hero-phone__cutout {
  display: grid;
  place-items: center;
  color: #24131b;
  background: rgba(255, 249, 230, 0.92);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
}

.hero-phone__cutout--ticket {
  left: 7%;
  bottom: 34%;
  width: 40%;
  min-height: 58px;
  border: 2px solid rgba(255, 79, 162, 0.44);
  border-radius: 10px;
  font-size: 0.78rem;
  transform: rotate(-2deg);
}

.hero-phone__cutout--year {
  right: 14%;
  top: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 2.9rem;
  text-shadow:
    -1px -1px 0 #cfd6dc,
    1px -1px 0 #ffffff,
    -1px 1px 0 #7a8088,
    1px 1px 0 #ffffff,
    0 16px 28px rgba(0, 0, 0, 0.25);
  transform: rotate(10deg);
}

.hero-phone__ribbon {
  top: 21%;
  left: -8%;
  width: 116%;
  padding: 12px 18px;
  border-radius: 999px;
  color: #1f171a;
  background: rgba(255, 250, 226, 0.94);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-align: center;
  transform: rotate(8deg);
  animation: ribbonFloat 6.5s ease-in-out infinite;
}

.hero-phone__light {
  position: absolute;
  inset: -20% auto auto -30%;
  width: 120%;
  height: 42%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  filter: blur(12px);
  transform: rotate(-18deg);
  animation: phoneLight 5.6s ease-in-out infinite;
}

.hero-phone__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 8px;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.hero-phone__copy small {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.hero-phone__copy strong {
  max-width: 12ch;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1.02;
}

.hero-phone > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.live-board::before,
.library-card::before,
.constructor-panel::before,
.gift-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--tone-c) 35%, transparent), transparent 26%);
  pointer-events: none;
}

.constructor-panel {
  border-color: var(--ds-color-border-subtle);
  color: var(--ds-color-text);
  background: var(--ds-color-surface-soft);
  box-shadow: var(--ds-shadow-md);
}

.constructor-panel::before {
  display: none;
  content: none;
}

.constructor-panel .section-label,
.constructor-panel .constructor__top h2 {
  color: var(--ink);
  text-shadow: none;
}

.constructor-panel .constructor__top h2 {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.live-board__chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 16px;
}

.live-board__chrome span {
  color: #2b1722;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.live-board__chrome small {
  color: rgba(43, 23, 34, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
}

.live-board__grid,
.finished-board,
.result-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 26px;
  background: var(--board-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 20px 50px rgba(64, 20, 48, 0.2);
}

.live-tile,
.finished-board article,
.preview-tile {
  position: relative;
  display: grid;
  min-height: 98px;
  align-content: end;
  padding: 11px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(20, 15, 18, 0.02), rgba(20, 15, 18, 0.72)),
    var(--tile-image, var(--card-image, linear-gradient(135deg, var(--tone-a), var(--tone-b))));
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(45, 20, 32, 0.1);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.live-tile::before,
.finished-board article::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.3), transparent 20%),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.14));
  opacity: 0.56;
}

.live-tile {
  --tile-image: url("assets/moodboard.JPG");
  opacity: 0;
  transform: scale(0.92) translateY(14px);
  animation: tileAssemble 4.8s ease-in-out infinite;
}

.live-tile--one {
  --tile-image: url("assets/travel-plane.JPG");
}

.live-tile--two {
  --tile-image: url("assets/wellness-yoga.JPG");
  animation-delay: 0.22s;
}

.live-tile--three {
  --tile-image: url("assets/engagement-flowers.JPG");
  animation-delay: 0.44s;
}

.live-tile--four {
  --tile-image: url("assets/cabin-cinema.JPG");
  animation-delay: 0.66s;
}

.live-tile--center {
  --tile-image: url("assets/birthday-room.JPG");
  min-height: 120px;
  animation-delay: 0.88s;
  font-size: 1.3rem;
}

.live-tile--five {
  --tile-image: url("assets/yacht-flowers.JPG");
  animation-delay: 1.1s;
}

.live-tile--six {
  --tile-image: url("assets/career-office.JPG");
  animation-delay: 1.32s;
}

.live-tile--seven {
  --tile-image: url("assets/style-wardrobe.JPG");
  animation-delay: 1.54s;
}

.live-tile--eight {
  --tile-image: url("assets/study-library.JPG");
  animation-delay: 1.76s;
}

.horizontal-scroll {
  display: grid;
  gap: 14px;
  overflow: visible;
  padding: 4px 2px 0;
}

.filled-zones ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-format {
  position: relative;
  width: var(--framed-section-width);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 3vw, 40px) 0;
}

.product-format::before {
  content: none;
}

.product-format__heading {
  max-width: 940px;
  gap: 10px;
  margin-bottom: clamp(18px, 2vw, 24px);
  padding-inline: 0;
}

.product-format .section-label {
  color: var(--accent);
}

.product-format__heading h2 {
  max-width: 940px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: none;
  text-wrap: balance;
}

.product-format__heading > p:not(.section-label) {
  max-width: 700px;
  margin: 4px 0 0;
  color: var(--ds-color-text-muted);
  font-size: 1rem;
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.45;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.format-card {
  position: relative;
  display: grid;
  grid-template-rows: clamp(180px, 15vw, 220px) 1fr;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-md);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.format-card:hover {
  transform: translateY(-5px);
  border-color: var(--ds-color-border);
  box-shadow: var(--ds-shadow-lg);
}

.format-card__preview {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: var(--ds-color-surface-pink);
}

.format-card__preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 250, 0.82));
}

.format-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--preview-position, center);
  transform: scale(var(--preview-zoom, 1));
  transform-origin: var(--preview-origin, center);
  transition: transform 320ms ease;
}

.format-card:hover .format-card__preview img {
  transform: scale(calc(var(--preview-zoom, 1) + 0.035));
}

.format-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  max-width: calc(100% - 36px);
  padding: 0 16px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: 999px;
  color: var(--ds-color-text);
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--ds-shadow-sm);
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.format-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: clamp(18px, 1.8vw, 24px);
}

.format-card__body h3 {
  margin: 0;
  color: var(--ds-color-text);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: keep-all;
}

.format-card__body p {
  margin: 0;
  color: var(--ds-color-text-muted);
  font-size: 0.9rem;
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.42;
  overflow-wrap: normal;
  word-break: keep-all;
}

.format-card__list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.format-card__list li {
  position: relative;
  min-height: 20px;
  padding-left: 0;
  color: var(--ds-color-text-muted);
  font-size: 0.84rem;
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: keep-all;
}

.format-card__list li::before {
  content: none;
}

.format-card .button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.format-card:hover .button {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: var(--ds-shadow-accent);
}

.format-card--map {
  background: var(--ds-color-surface);
}

.format-card--map .format-card__category {
  color: var(--ds-color-text);
  border-color: var(--ds-color-border-subtle);
}

.format-card--box {
  background: var(--ds-color-surface);
}

.format-card--box .format-card__category {
  color: var(--ds-color-text);
  border-color: var(--ds-color-border-subtle);
}

.format-card__price {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.format-card--box .button {
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
}

.style-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 12px;
}

.style-tab {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  white-space: nowrap;
  backdrop-filter: blur(18px);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

.style-tab.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.result-showcase {
  display: none;
  gap: 16px;
  margin-top: 8px;
}

.a3-preview,
.moodboard-preview,
.phone-result,
.filled-zones {
  padding: 16px;
}

.pinterest-board {
  position: relative;
  display: grid;
  min-height: 420px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 92px;
  gap: 10px;
  overflow: hidden;
  border-radius: 28px;
}

.pinterest-board span {
  border-radius: 20px;
  background: var(--pin-image) center / cover;
  box-shadow: 0 18px 34px rgba(45, 20, 32, 0.16);
}

.pinterest-board span:nth-child(1) {
  grid-row: span 2;
}

.pinterest-board span:nth-child(2) {
  grid-row: span 3;
}

.pinterest-board span:nth-child(3) {
  grid-row: span 2;
}

.pinterest-board span:nth-child(4),
.pinterest-board span:nth-child(5) {
  grid-row: span 2;
}

.pinterest-board .pin-note {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--accent-dark);
  background: rgba(255, 249, 230, 0.92);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-3deg);
}

.preview-label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.finished-board {
  aspect-ratio: 1.42;
}

.finished-board article {
  min-height: auto;
}

.finished-board article span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finished-board__center,
.preview-tile--center {
  background:
    linear-gradient(180deg, rgba(20, 15, 18, 0.02), rgba(20, 15, 18, 0.76)),
    var(--card-image, linear-gradient(135deg, var(--ink), var(--accent))) !important;
  background-position: center;
  background-size: cover;
}

.phone-frame {
  width: min(100%, 250px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow-deep);
}

.phone-screen {
  position: relative;
  display: grid;
  min-height: 400px;
  align-content: end;
  gap: 8px;
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.76)),
    var(--phone-image-1, url("assets/wellness-yoga.JPG")) 0 0 / 56% 42% no-repeat,
    var(--phone-image-2, url("assets/beauty-backstage.JPG")) 100% 0 / 44% 34% no-repeat,
    var(--phone-image-3, url("assets/engagement-flowers.JPG")) 100% 34% / 48% 36% no-repeat,
    var(--phone-image-4, url("assets/cabin-cinema.JPG")) 0 42% / 58% 32% no-repeat,
    var(--phone-image-5, url("assets/moodboard.JPG")) center bottom / 100% 36% no-repeat,
    linear-gradient(135deg, var(--tone-a), var(--tone-b), var(--tone-c));
}

.phone-screen span,
.phone-screen strong,
.phone-screen em,
.phone-screen small {
  position: relative;
  z-index: 1;
}

.phone-screen span,
.phone-screen small {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.phone-screen strong {
  font-size: 1.7rem;
  line-height: 1;
}

.phone-screen em {
  max-width: 13ch;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
}

.filled-zones {
  display: grid;
  align-content: center;
  gap: 18px;
}

.filled-zones p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.zone-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.zone-chips span {
  padding: 9px 12px;
}

.how {
  width: min(100% - 48px, 1480px);
}

.how .section-heading {
  margin-bottom: 34px;
}

.how h2 {
  max-width: none;
  font-size: clamp(4rem, 7.6vw, 7.4rem);
  line-height: 0.86;
  text-wrap: balance;
}

.benefits {
  position: relative;
  width: var(--framed-section-width);
  max-width: var(--max);
  margin: clamp(36px, 5vw, 72px) auto 0;
  padding: clamp(48px, 7vw, 88px) 0;
}

.benefits .section-heading h2 {
  max-width: 940px;
  color: var(--ink);
  font-size: var(--framed-title-size);
  line-height: 1.08;
  text-shadow: none;
}

.benefits .section-label,
.faq .section-label {
  color: var(--accent);
}

.benefits .section-heading p:not(.section-label) {
  max-width: 760px;
  color: var(--muted);
}

.benefits > .section-heading {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.library-card {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: var(--ds-space-6);
  margin-bottom: 16px;
  color: var(--ink);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-sm);
}

.library-card > * {
  position: relative;
  z-index: 1;
}

.library-card--full {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(16px, 3vw, 34px);
}

.library-card__intro {
  display: grid;
  max-width: 850px;
  gap: 12px;
}

.library-card__intro h3,
.library-card__intro strong {
  color: var(--ink);
}

.library-card__intro p {
  color: var(--ds-color-text-muted);
}

.library-card__intro p:last-child {
  margin-bottom: 0;
}

.library-zone-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.library-zone-tabs button {
  display: inline-flex;
  min-width: max-content;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(122, 74, 92, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  background: rgba(253, 246, 243, 0.82);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.library-zone-tabs button.is-active {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(64, 20, 48, 0.14);
}

.library-zone-tabs small {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent-dark);
  font-size: 0.68rem;
}

.library-back-button {
  color: var(--accent-dark) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.library-browser {
  display: grid;
  gap: 16px;
}

.library-browser__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
}

.library-browser__top div {
  display: grid;
  gap: 4px;
}

.library-browser__top strong {
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
}

.library-browser__top small,
.library-browser__top span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.library-inline-back {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.public-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.public-folder-card {
  display: grid;
  gap: 12px;
  min-height: 206px;
  padding: 14px;
  border: 1px solid rgba(122, 74, 92, 0.18);
  border-radius: 24px;
  cursor: pointer;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(253, 246, 243, 0.92)),
    #fdf6f3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 42px rgba(91, 35, 58, 0.12);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.public-folder-card:hover {
  border-color: rgba(181, 48, 111, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(253, 246, 243, 0.98)),
    #fdf6f3;
  transform: translateY(-3px);
}

.public-folder-card__head,
.public-folder-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-folder-card__head strong {
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  font-weight: 950;
  line-height: 1.1;
}

.public-folder-card__head small,
.public-folder-card__foot small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.public-folder-card__preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 112px;
  overflow: hidden;
  border-radius: 18px;
}

.public-folder-card__preview span {
  min-width: 0;
  min-height: 0;
  background: var(--folder-image) center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.public-folder-card__preview span:first-child {
  grid-row: span 2;
}

.public-folder-card__foot b {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.library-browser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.library-image-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.library-image-card.is-selected {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
}

.library-image-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  background:
    linear-gradient(145deg, rgba(253, 246, 243, 0.82), rgba(255, 255, 255, 0.68)),
    rgba(181, 48, 111, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(45, 20, 32, 0.12);
}

.library-image-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.library-image-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.library-image-card__meta button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.library-image-card.is-selected .library-image-card__meta button {
  color: var(--white);
  background: var(--accent-dark);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 18px);
  background: color-mix(in srgb, var(--ds-color-surface-pink) 90%, transparent);
  backdrop-filter: blur(18px);
}

.image-lightbox[hidden] {
  display: none;
}

.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox__panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, calc(100vw - 16px));
  height: min(100%, calc(100svh - 16px));
  overflow: hidden;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface-soft);
  box-shadow: var(--ds-shadow-lg);
}

.image-lightbox__panel::before {
  position: absolute;
  inset: -20%;
  z-index: 0;
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(194, 24, 91, 0.11);
  pointer-events: none;
}

.image-lightbox__phrases {
  display: none;
}

.image-lightbox__phrases span {
  position: absolute;
  color: rgba(181, 48, 111, 0.12);
  font-family: "Montserrat", sans-serif;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.image-lightbox__phrases span:nth-child(1) {
  top: 6%;
  left: -2%;
  font-size: clamp(3rem, 9vw, 10rem);
  transform: rotate(-7deg);
}

.image-lightbox__phrases span:nth-child(2) {
  top: 16%;
  right: -8%;
  font-size: clamp(2.2rem, 6vw, 7rem);
  transform: rotate(8deg);
}

.image-lightbox__phrases span:nth-child(3) {
  top: 34%;
  left: 4%;
  font-size: clamp(2rem, 5vw, 5.8rem);
  transform: rotate(-4deg);
}

.image-lightbox__phrases span:nth-child(4) {
  top: 47%;
  right: 4%;
  font-size: clamp(1.6rem, 4.2vw, 4.6rem);
  transform: rotate(5deg);
}

.image-lightbox__phrases span:nth-child(5) {
  bottom: 30%;
  left: -4%;
  font-size: clamp(2.4rem, 7vw, 7.5rem);
  transform: rotate(7deg);
}

.image-lightbox__phrases span:nth-child(6) {
  bottom: 20%;
  right: 8%;
  font-size: clamp(2rem, 5.6vw, 6rem);
  transform: rotate(-8deg);
}

.image-lightbox__phrases span:nth-child(7) {
  bottom: 8%;
  left: 10%;
  font-size: clamp(1.5rem, 3.8vw, 4rem);
  transform: rotate(-3deg);
}

.image-lightbox__phrases span:nth-child(8) {
  top: 68%;
  right: -5%;
  font-size: clamp(1.3rem, 3.4vw, 3.6rem);
  transform: rotate(10deg);
}

.image-lightbox__phrases span:nth-child(9) {
  top: 25%;
  left: 20%;
  font-size: clamp(1.2rem, 2.6vw, 3rem);
  transform: rotate(4deg);
}

.image-lightbox__phrases span:nth-child(10) {
  top: 78%;
  left: 30%;
  font-size: clamp(1rem, 2.4vw, 2.8rem);
  transform: rotate(-7deg);
}

.image-lightbox__phrases span:nth-child(11) {
  top: 56%;
  left: 8%;
  font-size: clamp(1rem, 2.2vw, 2.4rem);
  transform: rotate(9deg);
}

.image-lightbox__phrases span:nth-child(12) {
  bottom: 4%;
  right: 18%;
  font-size: clamp(1rem, 2.4vw, 2.8rem);
  transform: rotate(3deg);
}

.image-lightbox__panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: transparent;
}

.image-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.25rem;
  font-weight: 950;
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  place-items: center;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.image-lightbox__nav--prev {
  left: clamp(10px, 2vw, 22px);
}

.image-lightbox__nav--next {
  right: clamp(10px, 2vw, 22px);
}

.image-lightbox__nav[hidden] {
  display: none;
}

.image-lightbox__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
}

.image-lightbox__bar div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.image-lightbox__bar strong {
  overflow: hidden;
  color: var(--ds-color-text);
  font-size: 0.92rem;
  font-weight: var(--ds-font-weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox__bar small {
  color: var(--ds-color-text-muted);
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-semibold);
}

.box-order-error {
  margin: 12px 0 0;
  color: var(--ds-color-error);
  font-size: 0.88rem;
  font-weight: var(--ds-font-weight-semibold);
  line-height: 1.45;
}

.gift-card,
.constructor-panel,
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.gift-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(100%, var(--max));
  align-items: center;
  margin-inline: auto;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-pink);
  box-shadow: var(--ds-shadow-md);
}

.gift-card__content {
  display: grid;
  gap: 14px;
  align-content: center;
}

.gift-card h2 {
  max-width: 760px;
  color: var(--ds-color-text);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
}

.gift-card p {
  max-width: 640px;
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-font-weight-medium);
}

.button--gift-hero {
  width: max-content;
  max-width: 100%;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 24px 70px rgba(181, 48, 111, 0.28);
  min-height: 48px;
  text-transform: none;
}

.gift-mockup {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  isolation: isolate;
}

.gift-mockup__card {
  position: relative;
  display: grid;
  width: min(100%, 320px);
  max-width: 100%;
  align-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 34px;
  color: #2b1d18;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 232, 244, 0.62)),
    radial-gradient(circle at 78% 18%, rgba(247, 207, 131, 0.72), transparent 26%);
  box-shadow:
    0 34px 90px rgba(35, 12, 26, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(-4deg);
}

.gift-mockup__card span,
.gift-mockup__card small {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.gift-mockup__card strong {
  max-width: 7ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 950;
  line-height: 0.84;
}

.gift-mockup__ribbon {
  display: none;
}

.gift-mockup__spark {
  display: none;
}

.gift-mockup__spark--one {
  top: 12%;
  left: 8%;
}

.gift-mockup__spark--two {
  right: 2%;
  bottom: 12%;
  width: 104px;
}

.constructor[hidden] {
  display: none;
}

.gift-card > *,
.constructor-panel > * {
  position: relative;
  z-index: 1;
}

.constructor__top {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.constructor-progress {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ds-color-text);
  font-weight: var(--ds-font-weight-bold);
}

.constructor-progress span {
  font-size: 2rem;
}

.constructor-progress small {
  color: var(--ds-color-text-muted);
}

.progress-line {
  height: 6px;
  margin-bottom: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ds-color-accent-soft);
}

.progress-line span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--ds-color-accent);
  transition: width 260ms ease;
}

.constructor-step {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.constructor-step.is-active {
  display: block;
  animation: stepIn 300ms ease forwards;
}

.brand-style-card {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.46fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 300px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 226, 169, 0.36), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(255, 79, 162, 0.42), transparent 34%),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 34px 100px rgba(64, 20, 48, 0.18);
}

body.is-map-flow .constructor-step[data-step="1"] .brand-style-card {
  display: none;
}

body.is-map-flow .constructor-step[data-step="1"] .digital-guide-card {
  grid-column: 1 / -1;
}

.digital-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  color: var(--ink);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.digital-guide-card h3 {
  margin: 0 0 10px;
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 5.35rem);
  line-height: 0.88;
  text-shadow: none;
}

.digital-guide-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.digital-guide-card__intro {
  display: grid;
  align-content: center;
  grid-column: auto;
}

.digital-guide-card__intro p:not(.section-label) {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}

.guide-visual-card {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 238, 247, 0.18)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 24px 70px rgba(64, 20, 48, 0.12);
}

.guide-visual-card img {
  display: block;
  width: min(100%, 330px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 28px 70px rgba(91, 35, 58, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.54);
  transform: rotate(-2deg);
}

.guide-visual-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 36px rgba(91, 35, 58, 0.18);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-abstract-board {
  display: none;
}

.guide-abstract-board__grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-3deg);
}

.guide-abstract-board__grid i {
  display: block;
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  background: var(--zone-tone);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(64, 20, 48, 0.1);
}

.guide-abstract-board__grid i:nth-child(1) {
  --zone-tone: linear-gradient(145deg, #e7d7ff, #cbb7f2);
}

.guide-abstract-board__grid i:nth-child(2) {
  --zone-tone: linear-gradient(145deg, #ffd1d6, #ef9aa6);
}

.guide-abstract-board__grid i:nth-child(3) {
  --zone-tone: linear-gradient(145deg, #ffe0ec, #f5a8c5);
}

.guide-abstract-board__grid i:nth-child(4) {
  --zone-tone: linear-gradient(145deg, #dff3df, #aeddb7);
}

.guide-abstract-board__grid i:nth-child(5) {
  --zone-tone: linear-gradient(145deg, #fff2b8, #efd776);
  transform: scale(1.08);
}

.guide-abstract-board__grid i:nth-child(6) {
  --zone-tone: linear-gradient(145deg, #ffdabb, #f0aa76);
}

.guide-abstract-board__grid i:nth-child(7) {
  --zone-tone: linear-gradient(145deg, #d8f2ff, #9bd6ec);
}

.guide-abstract-board__grid i:nth-child(8) {
  --zone-tone: linear-gradient(145deg, #cbdcff, #93afe4);
}

.guide-abstract-board__grid i:nth-child(9) {
  --zone-tone: linear-gradient(145deg, #f6f3ee, #ded8cd);
}

.guide-abstract-board b {
  position: absolute;
  z-index: 3;
  display: block;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(64, 20, 48, 0.12);
}

.guide-abstract-board b:nth-of-type(1) {
  width: 58%;
  top: 22px;
  left: 22px;
  transform: rotate(-5deg);
}

.guide-abstract-board b:nth-of-type(2) {
  width: 48%;
  right: 20px;
  bottom: 34px;
  transform: rotate(6deg);
}

.guide-abstract-board b:nth-of-type(3) {
  width: 34%;
  left: 30px;
  bottom: 82px;
  background: rgba(255, 244, 210, 0.84);
  transform: rotate(4deg);
}

.guide-step-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-details {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 0;
}

.guide-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.guide-details summary::-webkit-details-marker {
  display: none;
}

.guide-details summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.guide-details[open] summary::after {
  content: "-";
}

.guide-step-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  color: var(--ink);
  background: var(--soft-pink-card-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 16px 44px rgba(91, 35, 58, 0.08);
}

.guide-step-grid article span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 950;
}

.guide-step-grid article strong {
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1;
}

.guide-step-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 740;
  line-height: 1.42;
}

.feng-shui-note {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  color: var(--accent-dark);
  background:
    radial-gradient(circle at 95% 0%, rgba(247, 207, 131, 0.44), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.feng-shui-note span {
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.feng-shui-note p {
  max-width: 980px;
  margin: 0;
  color: color-mix(in srgb, var(--accent-dark) 78%, #301724);
  font-weight: 850;
}

.brand-style-card h3 {
  max-width: 11.5ch;
  margin: 8px 0 14px;
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  line-height: 0.86;
  overflow-wrap: normal;
  word-break: normal;
}

.brand-style-card p:not(.section-label) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 750;
  line-height: 1.5;
}

.hero-phone--constructor {
  justify-self: center;
  width: min(100%, 350px);
}

.hero-phone--constructor .hero-phone__frame {
  width: min(100%, 330px);
  padding: 10px;
}

.hero-phone--constructor .hero-phone__screen {
  min-height: 520px;
  border-radius: 30px;
}

.hero-phone--constructor > p {
  display: none;
}

.brand-style-card__preview {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 236, 246, 0.38)),
    radial-gradient(circle at 20% 20%, rgba(255, 79, 162, 0.24), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.brand-style-card__preview span {
  position: absolute;
  width: 54%;
  aspect-ratio: 1.2;
  background: var(--sticker) center / contain no-repeat;
  filter: drop-shadow(0 18px 30px rgba(64, 20, 48, 0.22));
}

.brand-style-card__preview span:nth-child(1) {
  top: 12%;
  left: 8%;
  transform: rotate(-8deg);
}

.brand-style-card__preview span:nth-child(2) {
  right: 6%;
  top: 28%;
  transform: rotate(8deg);
}

.brand-style-card__preview span:nth-child(3) {
  bottom: 8%;
  left: 22%;
  transform: rotate(-3deg);
}

.brand-phone-preview {
  display: grid;
  justify-items: center;
  perspective: 1100px;
}

.brand-phone-preview__screen {
  position: relative;
  display: block;
  width: min(100%, 310px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 18px;
  border: 10px solid rgba(35, 16, 27, 0.92);
  border-radius: 42px;
  background: #fff;
  box-shadow:
    0 36px 90px rgba(45, 16, 34, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotateY(-8deg) rotateX(3deg);
  animation: phonePreviewFloat 6s ease-in-out infinite;
}

.brand-phone-preview__screen > span,
.brand-phone-preview__screen > strong {
  position: absolute;
  z-index: 2;
  color: rgba(35, 22, 29, 0.64);
  text-shadow: none;
}

.brand-phone-preview__screen > span {
  top: 48px;
  left: 0;
  right: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.brand-phone-preview__screen::before {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  content: "Vodafone UA    80%";
  color: rgba(35, 22, 29, 0.76);
  font-size: 0.58rem;
  font-weight: 760;
  white-space: pre;
}

.brand-phone-preview__screen::after {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 14px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(35, 22, 29, 0.76);
}

.brand-phone-preview__screen > strong {
  left: 22px;
  right: 22px;
  bottom: 72px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: rgba(246, 246, 246, 0.88);
  box-shadow: 0 18px 40px rgba(35, 22, 29, 0.18);
}

.brand-phone-preview__screen > strong::after {
  content: "";
  width: 16px;
  height: 20px;
  border-radius: 4px;
  background: #111;
  box-shadow:
    178px 0 0 #111,
    178px 0 0 16px rgba(246, 246, 246, 0.88);
}

.brand-phone-preview__grid {
  position: absolute;
  inset: 92px 10px 82px;
}

.brand-phone-preview__grid i {
  position: absolute;
  width: 33%;
  height: 22%;
  padding: 4px 4px 18px;
  border: 1px solid rgba(35, 22, 29, 0.78);
  border-radius: 6px;
  background: var(--brand-img) center / cover;
  box-shadow:
    inset 0 -20px 0 #fff,
    0 13px 26px rgba(35, 22, 29, 0.12);
  animation: miniPhotoGlow 4.8s ease-in-out infinite;
}

.brand-phone-preview__grid i::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  content: "LOVE IS LOVE";
  color: #21161b;
  font-size: 0.34rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.brand-phone-preview__grid i:nth-child(1) {
  top: 1%;
  left: -3%;
  transform: rotate(-3deg);
}

.brand-phone-preview__grid i:nth-child(2) {
  top: 5%;
  left: 30%;
  transform: rotate(2deg);
  animation-delay: -1.1s;
}

.brand-phone-preview__grid i:nth-child(3) {
  top: 0;
  right: -5%;
  transform: rotate(-2deg);
  animation-delay: -2.2s;
}

.brand-phone-preview__grid i:nth-child(4) {
  top: 25%;
  left: 3%;
  transform: rotate(4deg);
}

.brand-phone-preview__grid i:nth-child(5) {
  top: 27%;
  left: 34%;
  transform: rotate(-5deg);
  z-index: 2;
}

.brand-phone-preview__grid i:nth-child(6) {
  top: 25%;
  right: 0;
  transform: rotate(3deg);
}

.brand-phone-preview__grid i:nth-child(7) {
  bottom: 25%;
  left: -2%;
  transform: rotate(-2deg);
}

.brand-phone-preview__grid i:nth-child(8) {
  bottom: 20%;
  left: 31%;
  transform: rotate(3deg);
}

.brand-phone-preview__grid i:nth-child(9) {
  bottom: 23%;
  right: -2%;
  transform: rotate(-3deg);
}

.brand-phone-preview__grid::before,
.brand-phone-preview__grid::after {
  position: absolute;
  z-index: 4;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 14px rgba(35, 22, 29, 0.14));
}

.brand-phone-preview__grid::before {
  right: 2%;
  bottom: 5%;
  width: 34%;
  height: 22%;
  background-image: url("assets/stickers-cutout/red-lips.png");
  transform: rotate(9deg);
}

.brand-phone-preview__grid::after {
  left: 3%;
  bottom: 2%;
  width: 52%;
  height: 20%;
  background-image: url("assets/stickers-cutout/plate-pinterest-mood.png");
  transform: rotate(-4deg);
}

.style-world-grid {
  display: grid;
  gap: 16px;
}

.style-world {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  align-content: end;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--white);
  text-align: left;
  box-shadow: 0 32px 90px rgba(64, 20, 48, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.style-world::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.64)),
    var(--style-image) center / cover;
  opacity: 0.88;
}

.style-world::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--style-glow);
  mix-blend-mode: screen;
}

.style-world span,
.style-world strong {
  position: relative;
  z-index: 1;
}

.style-world span {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 950;
  line-height: 0.9;
}

.style-world strong {
  max-width: 24ch;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.style-world.is-active,
.style-world:hover {
  transform: translateY(-4px);
  box-shadow: 0 44px 120px rgba(64, 20, 48, 0.3);
}

.style-world--pink {
  --style-image: url("assets/beauty-backstage.JPG");
  --style-glow: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 22%), linear-gradient(145deg, rgba(255, 79, 162, 0.52), rgba(247, 207, 131, 0.26));
  background: #e0448c;
}

.style-world--luxury {
  --style-image: url("assets/fashion-show.JPG");
  --style-glow: radial-gradient(circle at 78% 18%, rgba(247, 207, 131, 0.58), transparent 24%), linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(231, 199, 119, 0.2));
  background: #111114;
}

.style-world--divine {
  --style-image: url("assets/wellness-yoga.JPG");
  --style-glow: radial-gradient(circle at 16% 24%, rgba(255, 245, 234, 0.76), transparent 24%), linear-gradient(145deg, rgba(199, 138, 103, 0.24), rgba(255, 245, 234, 0.36));
  color: #3a251d;
  background: #f8efe5;
}

.constructor-copy {
  margin-bottom: 18px;
}

.constructor-panel .constructor-copy h3 {
  color: var(--ink);
  text-shadow: none;
}

.constructor-copy p {
  max-width: 720px;
}

.constructor-panel .constructor-copy p {
  color: var(--muted);
}

.result-note {
  width: max-content;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text-muted);
  background: var(--ds-color-surface-soft);
  font-size: var(--ds-font-size-caption);
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.12em;
}

.constructor-panel .result-note {
  border-color: rgba(181, 48, 111, 0.2);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
}

.constructor-panel .form-grid label,
.constructor-panel .premium-questions label,
.constructor-panel .final-contact-grid label,
.constructor-panel .wallpaper-field {
  color: var(--ink);
}

.constructor-panel textarea,
.constructor-panel .form-grid input,
.constructor-panel .premium-questions textarea,
.constructor-panel .final-contact-grid input {
  border-color: var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: none;
}

.constructor-panel textarea::placeholder,
.constructor-panel .form-grid input::placeholder,
.constructor-panel .premium-questions textarea::placeholder,
.constructor-panel .final-contact-grid input::placeholder {
  color: var(--ds-color-text-subtle);
}

.constructor-panel .marketing-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.74rem + 0.16vw, 0.92rem);
  line-height: 1.35;
}

.constructor-panel .marketing-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.constructor-panel .checkout-card,
.constructor-panel .free-result-card,
.constructor-panel .package-card,
.constructor-panel .download-panel,
.constructor-panel .email-preview-card:not(.email-preview-card--premium) {
  border-color: var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.constructor-panel .checkout-card :where(h3, p, strong, small),
.constructor-panel .free-result-card :where(h3, p, strong, small),
.constructor-panel .package-card :where(h3, p, strong, li, small),
.constructor-panel .download-panel :where(h3, p, strong, small),
.constructor-panel .email-preview-card:not(.email-preview-card--premium) :where(h3, p, strong, small) {
  color: var(--ink);
  text-shadow: none;
}

.constructor-panel .package-card > span,
.constructor-panel .email-preview-card:not(.email-preview-card--premium) > span {
  color: var(--accent);
}

.constructor-panel .package-card p,
.constructor-panel .download-panel p,
.constructor-panel .email-preview-card:not(.email-preview-card--premium) p,
.constructor-panel .free-result-card p,
.constructor-panel .checkout-card p {
  color: var(--muted);
}

.phone-builder-card,
.phone-wallpaper-result {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.phone-builder-copy,
.wallpaper-copy {
  display: grid;
  gap: 10px;
}

.phone-builder-copy :where(h3, p),
.wallpaper-copy :where(h3, p),
.phone-builder-card .export-status,
.phone-wallpaper-result .export-status {
  color: var(--ds-color-text-muted);
  text-shadow: none;
}

.phone-builder-copy h3,
.wallpaper-copy h3 {
  color: var(--ds-color-text);
}

.editor-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.editor-quick-actions button,
.editor-quick-action {
  position: relative;
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
}

.editor-quick-action input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.editor-quick-actions button[data-export-wallpaper] {
  color: #fff;
  background: linear-gradient(135deg, #f2459b, #9f245f);
}

.export-status {
  min-height: 18px;
  color: var(--ds-color-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.phone-editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface-soft);
}

.phone-editor-tabs button {
  min-height: 44px;
  border-radius: 16px;
  color: var(--ds-color-text-muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-semibold);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.phone-editor-tabs button.is-active {
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
  box-shadow: var(--ds-shadow-accent);
}

.wallpaper-copy p {
  margin: 0;
}

.wallpaper-field {
  display: grid;
  gap: 8px;
  color: var(--ds-color-text);
  font-weight: var(--ds-font-weight-semibold);
}

.wallpaper-field input,
.gift-form input,
.gift-form textarea {
  min-height: 52px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--ds-color-border);
  border-radius: 18px;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-soft);
  font-weight: 750;
}

.gift-form label {
  display: grid;
  gap: 8px;
  color: #3b0e24;
}

.gift-form label span {
  color: #3b0e24;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.gift-form input::placeholder,
.gift-form textarea::placeholder {
  color: #7a4a5c;
}

.gift-form textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.phone-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.phone-editor-controls {
  min-width: 0;
}

.phone-editor-panel,
.gift-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(122, 74, 92, 0.26);
  border-radius: 24px;
  background: #fdf6f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gift-form {
  margin-top: 24px;
}

.phone-editor-panel[data-editor-panel] {
  display: none;
}

.phone-editor-panel[data-editor-panel].is-active {
  display: grid;
}

.phone-editor-preview {
  position: sticky;
  top: 96px;
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.asset-folder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.asset-folder > span {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.affirmation-folder {
  display: grid;
  max-height: 188px;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.affirmation-folder button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.affirmation-folder button:hover {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.24);
}

.upload-pill {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.upload-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.wallpaper-library-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
}

.wallpaper-library-top div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wallpaper-library-top strong {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.wallpaper-library-top small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.wallpaper-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallpaper-folder-card {
  min-height: 172px;
  padding: 10px;
  border-radius: 20px;
}

.wallpaper-folder-card .public-folder-card__preview {
  height: 86px;
  border-radius: 14px;
}

.wallpaper-folder-card .public-folder-card__head strong {
  font-size: clamp(0.9rem, 1.3vw, 1.18rem);
  white-space: nowrap;
}

.wallpaper-folder-card--inspiration {
  grid-column: 1 / -1;
  min-height: 190px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(135deg, rgba(255, 244, 248, 0.34), rgba(243, 84, 166, 0.22)),
    rgba(92, 34, 72, 0.16);
}

.wallpaper-folder-card--inspiration .public-folder-card__preview {
  height: 118px;
  grid-template-columns: 1.2fr repeat(3, 0.86fr);
  grid-template-rows: 1fr;
}

.wallpaper-folder-card--inspiration .public-folder-card__preview span:first-child {
  grid-row: auto;
}

.wallpaper-library-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wallpaper-library-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.wallpaper-library-tabs button.is-active {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.9);
}

.wallpaper-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 440px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.wallpaper-image-grid .library-image-card {
  border-radius: 18px;
}

.wallpaper-image-grid .library-image-card__preview {
  min-height: 0;
  border-radius: 13px;
}

.wallpaper-image-grid .wallpaper-image-preview,
.library-browser__grid .wallpaper-image-preview,
.zone-library-grid .wallpaper-image-preview {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  place-items: initial !important;
  padding: 0 !important;
  background: transparent !important;
}

.wallpaper-image-grid .wallpaper-image-preview img,
.library-browser__grid .wallpaper-image-preview img,
.zone-library-grid .wallpaper-image-preview img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.wallpaper-option {
  position: relative;
  display: grid;
  align-content: end;
  aspect-ratio: 0.78;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  cursor: pointer;
  background: var(--wallpaper-option-image) center / cover;
  box-shadow: 0 12px 24px rgba(45, 20, 32, 0.14);
}

.wallpaper-option::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(28, 11, 22, 0.72));
}

.wallpaper-option span {
  position: relative;
  z-index: 1;
  padding: 6px;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
  text-align: left;
}

.wallpaper-option.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.wallpaper-layout {
  display: grid;
  width: 100%;
  justify-items: center;
}

.wallpaper-preview {
  position: relative;
  display: block;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 14px;
  border: 8px solid rgba(24, 16, 22, 0.9);
  border-radius: 32px;
  color: var(--wallpaper-color);
  --wallpaper-bg: #ffffff;
  background: var(--wallpaper-bg);
  box-shadow: 0 28px 80px rgba(64, 20, 48, 0.32);
  touch-action: none;
  user-select: none;
}

.wallpaper-preview[data-device="ios"] {
  aspect-ratio: 9 / 16;
  border-radius: 38px;
}

.wallpaper-preview[data-device="android"] {
  aspect-ratio: 9 / 16;
  border-radius: 30px;
}

.wallpaper-preview::before,
.wallpaper-preview::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.wallpaper-preview::before {
  opacity: var(--wallpaper-opacity);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(35, 10, 26, 0.62));
}

.wallpaper-preview::after {
  mix-blend-mode: screen;
  opacity: 0.72;
}

.wallpaper-preview--glow::after {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.78), transparent 18%),
    radial-gradient(circle at 76% 76%, rgba(255, 199, 231, 0.42), transparent 28%);
}

.wallpaper-preview--pearl::after {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 34%),
    radial-gradient(circle at 68% 18%, rgba(244, 216, 255, 0.46), transparent 26%);
}

.wallpaper-preview--gold::after {
  background:
    radial-gradient(circle at 18% 80%, rgba(247, 207, 131, 0.64), transparent 24%),
    linear-gradient(145deg, transparent, rgba(255, 230, 170, 0.28));
}

.wallpaper-preview--depth::after {
  background: radial-gradient(circle at 50% 42%, transparent 18%, rgba(0, 0, 0, 0.28) 72%);
  mix-blend-mode: multiply;
}

.wallpaper-collage {
  position: relative;
  z-index: 5;
  display: grid;
  height: 100%;
  gap: 8px;
  touch-action: none;
  pointer-events: auto;
}

.wallpaper-collage i {
  min-height: 0;
  border-radius: 20px;
  background: var(--wallpaper-image) center / cover;
  box-shadow: 0 16px 34px rgba(24, 10, 18, 0.28);
  transform: translate(var(--photo-x), var(--photo-y)) scale(var(--photo-scale));
  transform-origin: center;
}

.wallpaper-bg--rose {
  --wallpaper-bg:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(145deg, #f052a2, #ba2f78 48%, #f3c575);
}

.wallpaper-bg--champagne {
  --wallpaper-bg:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, #f7e3bd, #d7a84f 48%, #fff7e8);
}

.wallpaper-bg--graphite {
  --wallpaper-bg:
    radial-gradient(circle at 24% 14%, rgba(231, 199, 119, 0.22), transparent 24%),
    linear-gradient(145deg, #111114, #343039 54%, #a17a36);
}

.wallpaper-bg--milk {
  --wallpaper-bg:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(145deg, #fff7ef, #e6c6b2 48%, #c78a67);
}

.wallpaper-bg--clean {
  --wallpaper-bg: #ffffff;
}

.wallpaper-lock-ui {
  display: none;
}

.wallpaper-preview--lockscreen {
  padding: 0;
  border-color: rgba(22, 15, 19, 0.92);
  color: #21161b;
  background: var(--wallpaper-bg);
}

.wallpaper-preview--lockscreen::before,
.wallpaper-preview--lockscreen::after {
  display: none;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui {
  display: none;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui span {
  position: absolute;
  top: 4%;
  left: 8%;
  color: rgba(33, 22, 27, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui b {
  position: absolute;
  top: 8.8%;
  left: 0;
  right: 0;
  color: rgba(33, 22, 27, 0.62);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui::before {
  position: absolute;
  top: 4%;
  right: 8%;
  content: "▮▮  Wi-Fi  80%";
  color: rgba(33, 22, 27, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui i,
.wallpaper-preview--lockscreen .wallpaper-lock-ui em {
  position: absolute;
  bottom: 5.6%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.92);
  box-shadow: 0 20px 46px rgba(20, 12, 16, 0.16);
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui i {
  left: 15%;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui em {
  right: 15%;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui i::before {
  content: "";
  width: 13px;
  height: 22px;
  border-radius: 4px;
  background: #111;
  box-shadow: 0 -8px 0 -4px #111;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui em::before {
  content: "";
  width: 24px;
  height: 17px;
  border-radius: 5px;
  background: #111;
  box-shadow: inset 0 0 0 5px #111;
}

.wallpaper-preview--lockscreen .wallpaper-lock-ui em::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #f5f5f5;
}

.wallpaper-preview--lockscreen .wallpaper-collage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  height: auto;
  overflow: hidden;
  touch-action: none;
  pointer-events: auto;
}

.wallpaper-photo-card {
  position: absolute;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: auto;
  min-width: 56px;
  min-height: 56px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 12px;
  cursor: grab;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--photo-rotate, 0deg));
  touch-action: none;
  pointer-events: auto;
  user-select: none;
}

.wallpaper-photo-card::before,
.wallpaper-photo-card::after {
  pointer-events: none;
}

.wallpaper-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  filter: drop-shadow(0 12px 18px rgba(24, 16, 22, 0.16));
  pointer-events: none;
  user-select: none;
}

.wallpaper-photo-card.is-cutout {
  overflow: visible;
  background: transparent;
}

.wallpaper-photo-card.is-cutout img {
  border-radius: 0;
  filter:
    drop-shadow(0 16px 20px rgba(24, 16, 22, 0.2))
    saturate(1.05)
    contrast(1.04);
  mix-blend-mode: multiply;
}

.wallpaper-photo-caption {
  display: block;
  min-height: 14px;
  padding-top: 3px;
  color: #24131b;
  font-size: clamp(0.32rem, 1.15vw, 0.48rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.wallpaper-photo-caption:empty {
  display: none;
}

.wallpaper-photo-card.is-selected,
.wallpaper-photo-card.is-dragging {
  box-shadow: none;
}

.wallpaper-photo-card.is-dragging {
  cursor: grabbing;
}

.photo-drag-hint {
  display: none;
}

.wallpaper-photo-card.is-selected .photo-drag-hint {
  animation: none;
}

@keyframes dragHintPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-3px) scale(1.05);
  }
}

.photo-transform-handle {
  position: absolute;
  z-index: 5;
  display: block;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ec4f9d;
  box-shadow: 0 8px 18px rgba(161, 41, 96, 0.28);
  pointer-events: auto;
  touch-action: none;
}

.photo-transform-handle--right {
  top: 50%;
  right: -8px;
  width: 16px;
  height: 28px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.photo-transform-handle--bottom {
  bottom: -8px;
  left: 50%;
  width: 28px;
  height: 16px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.photo-transform-handle--corner {
  right: -10px;
  bottom: -10px;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(3) {
  top: 0;
  right: 0;
  --card-rotate: -3deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(4) {
  top: 21%;
  left: 2%;
  --card-rotate: 2deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(5) {
  top: 22%;
  left: 35%;
  width: 26%;
  height: 17%;
  --card-rotate: -6deg;
  z-index: 2;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(6) {
  top: 23%;
  right: 2%;
  --card-rotate: 4deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(7) {
  top: 42%;
  left: -1%;
  --card-rotate: -2deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(8) {
  top: 43%;
  left: 31%;
  --card-rotate: 3deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(9) {
  top: 44%;
  right: 1%;
  --card-rotate: -3deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(10) {
  top: 63%;
  left: 8%;
  --card-rotate: 2deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(11) {
  top: 65%;
  right: 10%;
  --card-rotate: -2deg;
}

.wallpaper-preview--lockscreen .wallpaper-collage i:nth-child(12) {
  top: 79%;
  left: 34%;
  --card-rotate: 2deg;
}

.wallpaper-preview--lockscreen .wallpaper-text {
  display: none;
}

.wallpaper-preview--lockscreen .wallpaper-layer {
  filter: drop-shadow(0 10px 18px rgba(24, 16, 22, 0.16));
}

.wallpaper-preview--magazine .wallpaper-photo-card {
  border-radius: 24px 8px 24px 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
}

.wallpaper-preview--magazine .wallpaper-photo-card img {
  border-radius: inherit;
}

.wallpaper-preview--magazine .wallpaper-photo-caption {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 5px 6px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
}

.wallpaper-preview--polaroid .wallpaper-photo-card {
  padding: 6px 6px 5px;
  border: 1px solid rgba(36, 24, 31, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.wallpaper-preview--polaroid .wallpaper-photo-card img {
  border-radius: 4px;
}

.wallpaper-preview .wallpaper-photo-card.wallpaper-frame--clean {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.wallpaper-preview .wallpaper-photo-card.wallpaper-frame--clean img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(24, 16, 22, 0.16));
}

.wallpaper-preview--softgrid .wallpaper-collage {
  gap: 4px;
}

.wallpaper-preview--softgrid .wallpaper-photo-card {
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(24, 10, 18, 0.16);
}

.wallpaper-preview--softgrid .wallpaper-photo-caption {
  display: none;
}

.wallpaper-preview--custom .wallpaper-photo-card:nth-child(odd) {
  border-radius: 999px;
}

.wallpaper-preview--custom .wallpaper-photo-card:nth-child(even) {
  border-radius: 18px 6px 18px 6px;
}

.wallpaper-frame--clean {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.wallpaper-frame--clean .wallpaper-photo-caption {
  position: absolute;
  left: 50%;
  bottom: -8px;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(235, 68, 154, 0.94), rgba(255, 178, 82, 0.88));
  box-shadow: 0 9px 18px rgba(161, 41, 96, 0.18);
  transform: translateX(-50%);
}

.wallpaper-frame--polaroid {
  padding: 7px 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 18px 30px rgba(24, 16, 22, 0.18),
    0 2px 0 rgba(255, 170, 210, 0.9);
}

.wallpaper-frame--polaroid img {
  border-radius: 3px;
  filter: none;
}

.wallpaper-frame--tape {
  overflow: visible;
  padding: 0;
  border: 2px solid rgba(255, 124, 184, 0.72);
  border-radius: 16px;
  background: transparent;
}

.wallpaper-frame--tape::before,
.wallpaper-frame--tape::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 38%;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 247, 174, 0.96), rgba(255, 185, 221, 0.72));
  box-shadow: 0 5px 10px rgba(24, 16, 22, 0.12);
}

.wallpaper-frame--tape::before {
  top: -7px;
  left: 10%;
  transform: rotate(-8deg);
}

.wallpaper-frame--tape::after {
  right: 8%;
  bottom: -7px;
  transform: rotate(7deg);
}

.wallpaper-frame--emoji {
  overflow: visible;
  padding: 4px;
  border: 3px solid rgba(255, 98, 178, 0.94);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 205, 232, 0.55), rgba(255, 242, 168, 0.36));
  box-shadow: 0 16px 30px rgba(229, 74, 151, 0.18);
}

.wallpaper-frame--emoji::after {
  content: "♡ ✦";
  position: absolute;
  right: -14px;
  bottom: -12px;
  color: #ec4f9d;
  font-size: clamp(1rem, 3.6vw, 1.45rem);
  font-weight: 900;
  text-shadow: 0 3px 10px rgba(255, 255, 255, 0.9);
}

.wallpaper-frame--film {
  padding: 9px 12px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 12px) top 3px left 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 12px) bottom 3px left 0 / 100% 6px no-repeat,
    #24131b;
  box-shadow: 0 18px 34px rgba(24, 16, 22, 0.28);
}

.wallpaper-frame--film img {
  border-radius: 4px;
  filter: none;
}

.wallpaper-frame--film .wallpaper-photo-caption {
  color: #fff;
}

.wallpaper-frame--soft {
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 128, 193, 0.34), rgba(255, 221, 134, 0.24));
  box-shadow:
    0 18px 36px rgba(229, 74, 151, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(6px);
}

.wallpaper-frame--soft img {
  border-radius: 14px;
}

.wallpaper-motion--float .wallpaper-photo-card {
  animation: collageFloat 6s ease-in-out infinite;
}

.wallpaper-motion--pulse .wallpaper-photo-card {
  animation: collagePulse 4.8s ease-in-out infinite;
}

.wallpaper-motion--none .wallpaper-photo-card {
  animation: none;
}

.wallpaper-preview--editorial .wallpaper-collage {
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 0.82fr 0.9fr;
}

.wallpaper-preview--editorial .wallpaper-collage i:nth-child(1) {
  grid-row: span 2;
}

.wallpaper-preview--editorial .wallpaper-collage i:nth-child(4) {
  grid-column: span 2;
}

.wallpaper-preview--grid .wallpaper-collage {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}

.wallpaper-preview--stack .wallpaper-collage,
.wallpaper-preview--focus .wallpaper-collage {
  display: block;
}

.wallpaper-preview--stack .wallpaper-collage i {
  position: absolute;
  width: 68%;
  height: 34%;
  transform: rotate(-7deg);
}

.wallpaper-preview--stack .wallpaper-collage i:nth-child(1) {
  top: 7%;
  left: 2%;
}

.wallpaper-preview--stack .wallpaper-collage i:nth-child(2) {
  top: 25%;
  right: 1%;
  transform: rotate(6deg);
}

.wallpaper-preview--stack .wallpaper-collage i:nth-child(3) {
  top: 48%;
  left: 8%;
  transform: rotate(-3deg);
}

.wallpaper-preview--stack .wallpaper-collage i:nth-child(n + 4) {
  bottom: 5%;
  right: 9%;
  transform: rotate(5deg);
}

.wallpaper-preview--focus .wallpaper-collage i:first-child {
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.wallpaper-preview--focus .wallpaper-collage i:not(:first-child) {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 42%;
  height: 18%;
  margin: 8px 4px;
  vertical-align: top;
}

.wallpaper-text {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.wallpaper-stickers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate(var(--sticker-x), var(--sticker-y)) scale(var(--sticker-size));
  transform-origin: center;
}

.wallpaper-layers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.wallpaper-layer {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: grab;
  color: #fff8b7;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
  opacity: var(--layer-opacity);
  transform: translate(-50%, -50%) scale(var(--layer-size)) rotate(var(--layer-rotate));
  filter: drop-shadow(0 10px 16px rgba(24, 10, 18, 0.22));
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}

.wallpaper-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallpaper-layer.is-selected {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
}

.wallpaper-layer.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 18px 26px rgba(24, 10, 18, 0.32));
}

.wallpaper-layer--wide {
  width: 118px;
  height: 54px;
  border-radius: 22px;
}

.wallpaper-layer--ribbon {
  width: 132px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #24131b;
  background: rgba(255, 248, 224, 0.94);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.wallpaper-layer--ticket {
  width: 92px;
  height: 56px;
  border: 2px solid rgba(255, 79, 162, 0.48);
  border-radius: 8px;
  color: #24131b;
  background: rgba(255, 249, 230, 0.94);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1.05;
}

.wallpaper-sticker,
.wallpaper-ribbon,
.wallpaper-ticket {
  position: absolute;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 14px rgba(24, 10, 18, 0.2));
}

.wallpaper-sticker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 950;
}

.wallpaper-stickers--cream .wallpaper-sticker {
  color: #fff8b7;
  background: transparent;
}

.wallpaper-stickers--glossy .wallpaper-sticker {
  color: #24131b;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.wallpaper-stickers--marker .wallpaper-sticker {
  color: #b5306f;
  background: transparent;
  font-family: "Montserrat", sans-serif;
}

.wallpaper-sticker--1 {
  top: 8%;
  left: 12%;
}

.wallpaper-sticker--2 {
  top: 25%;
  right: 9%;
}

.wallpaper-sticker--3 {
  bottom: 17%;
  left: 18%;
}

.wallpaper-sticker--4 {
  top: 52%;
  right: 16%;
}

.wallpaper-sticker--5 {
  bottom: 7%;
  right: 12%;
}

.wallpaper-sticker--6 {
  top: 42%;
  left: 4%;
}

.wallpaper-sticker--7 {
  top: 11%;
  right: 26%;
}

.wallpaper-sticker--8 {
  bottom: 34%;
  left: 34%;
}

.wallpaper-sticker--9 {
  top: 62%;
  right: 4%;
}

.wallpaper-sticker--10 {
  bottom: 43%;
  left: 5%;
}

.wallpaper-ribbon {
  top: 18%;
  left: -16%;
  width: 132%;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #24131b;
  background: rgba(255, 248, 224, 0.92);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(10deg);
}

.wallpaper-ticket {
  right: 7%;
  bottom: 22%;
  width: 42%;
  min-height: 52px;
  border: 2px solid rgba(255, 79, 162, 0.48);
  border-radius: 8px;
  color: #24131b;
  background: rgba(255, 249, 230, 0.92);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-3deg);
}

.wallpaper-text--top {
  top: 24px;
}

.wallpaper-text--center {
  top: 50%;
  transform: translateY(-50%);
}

.wallpaper-text--bottom {
  bottom: 24px;
}

.wallpaper-text span:empty {
  display: none;
}

.wallpaper-preview strong,
.wallpaper-preview em,
.wallpaper-preview small {
  display: block;
  max-width: 13ch;
}

.wallpaper-preview strong {
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.04;
}

.wallpaper-preview em {
  margin-left: 10px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.wallpaper-preview small {
  justify-self: start;
  max-width: 15ch;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: none;
  text-transform: uppercase;
}

.wallpaper-preview--serif strong,
.wallpaper-preview--serif em {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.wallpaper-preview--playfair strong,
.wallpaper-preview--playfair em {
  font-family: "Montserrat", sans-serif;
}

.wallpaper-preview--cormorant strong,
.wallpaper-preview--cormorant em {
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
}

.wallpaper-preview--signature strong,
.wallpaper-preview--signature em,
.wallpaper-preview--allura strong,
.wallpaper-preview--allura em,
.wallpaper-preview--parisienne strong,
.wallpaper-preview--parisienne em {
  font-weight: 400;
  letter-spacing: 0;
}

.wallpaper-preview--signature strong,
.wallpaper-preview--signature em {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
}

.wallpaper-preview--allura strong,
.wallpaper-preview--allura em {
  font-family: "Montserrat", sans-serif;
  font-size: 1.62rem;
}

.wallpaper-preview--parisienne strong,
.wallpaper-preview--parisienne em {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
}

.wallpaper-preview--soft strong,
.wallpaper-preview--soft em {
  font-weight: 600;
}

.selected-wallpaper-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  max-height: 160px;
  overflow: auto;
  gap: 6px;
}

.selected-wallpaper-images button {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  cursor: pointer;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.selected-wallpaper-images button.is-active {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 3px rgba(161, 41, 96, 0.28),
    0 12px 24px rgba(64, 20, 48, 0.16);
}

.sticker-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.sticker-category-tabs,
.background-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.sticker-category-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.34);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 950;
  cursor: pointer;
}

.sticker-category-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 28px rgba(128, 31, 72, 0.22);
}

.background-swatches button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--accent-dark);
  background:
    var(--bg-swatch, linear-gradient(135deg, #e0448c, #f7cf83));
  font: inherit;
  font-size: 0.52rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(64, 20, 48, 0.12);
}

.background-swatches button.is-active {
  outline: 3px solid rgba(161, 41, 96, 0.36);
  outline-offset: 2px;
}

.sticker-library-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  color: var(--accent-dark);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 248, 0.58)),
    rgba(255, 255, 255, 0.24);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(64, 20, 48, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.sticker-library-card span {
  display: block;
  min-height: 82px;
  border-radius: 14px;
  background: var(--sticker-preview) center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(64, 20, 48, 0.18));
}

.sticker-library-card small {
  display: block;
  color: var(--accent-dark);
  font-size: 0.58rem;
  line-height: 1.05;
  text-align: center;
}

.sticker-library-card:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 20px 44px rgba(64, 20, 48, 0.16);
}

.emoji-palette,
.selected-stickers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.emoji-palette button,
.selected-stickers span,
.selected-stickers button,
.editor-mini-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font: inherit;
  font-weight: 900;
}

.emoji-palette button,
.selected-stickers span,
.selected-stickers button {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 6px;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
}

.selected-stickers button.is-active {
  background: rgba(255, 255, 255, 0.32);
  outline: 2px solid rgba(255, 255, 255, 0.62);
}

.layer-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.layer-controls p {
  margin: 0;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 850;
}

.layer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.upload-pill--compact {
  min-height: 44px;
  font-size: 0.66rem;
}

.emoji-palette button {
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.emoji-palette button:hover {
  transform: translateY(-2px) rotate(-3deg);
  background: rgba(255, 255, 255, 0.26);
}

.editor-mini-action {
  min-height: 42px;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.editor-mini-action--danger {
  color: #fff;
  background: rgba(161, 41, 96, 0.72);
}

.photo-placement-tools {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
}

.photo-gesture-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.photo-placement-tools__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-placement-tools__head strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.photo-placement-tools__head small,
.photo-placement-empty p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.38;
}

.photo-placement-controls {
  display: grid;
  gap: 10px;
}

.control-group--compact {
  gap: 9px;
}

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

.frame-style-grid button {
  min-height: 82px;
  padding: 9px 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.frame-style-grid button:hover,
.frame-style-grid button.is-active {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 24px rgba(112, 42, 79, 0.14),
    0 0 0 2px rgba(232, 76, 152, 0.2);
  transform: translateY(-1px);
}

.frame-style-preview {
  position: relative;
  display: block;
  width: 42px;
  height: 50px;
  margin: 0 auto 7px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(241, 82, 154, 0.25), rgba(255, 214, 139, 0.3)),
    rgba(255, 255, 255, 0.52);
}

.frame-style-preview--clean {
  border-radius: 10px;
  background: linear-gradient(135deg, #d85b9f, #f6c47a);
  box-shadow: 0 8px 16px rgba(216, 91, 159, 0.28);
}

.frame-style-preview--polaroid {
  height: 52px;
  padding: 5px 5px 13px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, #d85b9f, #f6c47a) center 5px / calc(100% - 10px) 30px no-repeat,
    #fff;
  box-shadow: 0 8px 16px rgba(24, 16, 22, 0.18);
}

.frame-style-preview--tape::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 7px;
  width: 29px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(135deg, #fff1a5, #ffc7e6);
  transform: rotate(-9deg);
}

.frame-style-preview--emoji::after {
  content: "♡✦";
  position: absolute;
  right: -10px;
  bottom: -7px;
  color: #e84c98;
  font-size: 22px;
}

.frame-style-preview--film {
  border: 6px solid #24131b;
  border-top-width: 8px;
  border-bottom-width: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.frame-style-preview--soft {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 214, 235, 0.36)),
    linear-gradient(135deg, #d85b9f, #f6c47a);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.72);
}

.photo-placement-empty {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.photo-placement-empty span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.editor-feature-note {
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.control-group,
.range-field {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-weight: 900;
}

.control-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

.segmented-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.segmented-controls button,
.color-swatches button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

.segmented-controls button {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
}

.segmented-controls button.is-active {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.84);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatches button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--swatch);
}

.color-swatches button.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.74);
  outline-offset: 2px;
}

.range-field input {
  accent-color: var(--accent);
}

.gift-form {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  overflow-y: auto;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: rgba(72, 39, 55, 0.24);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.gift-form[hidden] {
  display: none;
}

.gift-form__dialog {
  display: grid;
  width: min(100%, 720px);
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-lg);
}

.gift-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gift-form__header h3 {
  margin-top: 8px;
  color: var(--ds-color-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-shadow: none;
}

.gift-form__header > button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--ds-color-border);
  border-radius: 50%;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-soft);
  cursor: pointer;
  font-size: 1.25rem;
}

.gift-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gift-form .gift-packages .button {
  width: 100%;
}

.gift-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upgrade-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 70px rgba(64, 20, 48, 0.16);
}

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

.zones-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.zone-folder-intro {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border: 0;
  border-radius: 0;
  color: var(--ds-color-text);
  background: transparent;
}

.zone-folder-intro h3 {
  margin: 0;
  max-width: none;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.9;
  text-wrap: balance;
}

.zone-folder-intro p:not(.section-label) {
  max-width: 72ch;
  margin: 0;
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.42;
}

.zone-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  width: 100%;
}

.zone-folder {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  cursor: pointer;
  color: #352231;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.14)),
    var(--zone-tone, rgba(255, 255, 255, 0.22));
  text-align: left;
  box-shadow: var(--ds-shadow-sm);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.zone-folder:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2)),
    var(--zone-tone, rgba(255, 255, 255, 0.28));
  box-shadow: var(--ds-shadow-md);
}

.zone-folder.is-filled {
  border-color: var(--ds-color-accent);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 236, 246, 0.28)),
    var(--zone-tone, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 3px var(--ds-color-accent-soft), var(--ds-shadow-md);
}

.zone-folder.is-filled .zone-folder__number {
  color: #3b0e24;
  background: rgba(255, 255, 255, 0.92);
}

.zone-folder.is-filled em {
  color: #fff;
  background: #b5306f;
}

.zone-folder.is-filled::before {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #3b0e24;
  background: rgba(255, 255, 255, 0.92);
  content: "";
  font-weight: 950;
}

.zone-folder::before {
  display: none;
}

.zone-folder::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 54%),
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.34), transparent 28%);
}

.zone-folder__number,
.zone-folder strong,
.zone-folder small,
.zone-folder em {
  position: relative;
  z-index: 2;
}

.zone-folder__number {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ds-color-accent);
  font-size: 0.82rem;
  font-weight: var(--ds-font-weight-bold);
}

.zone-folder__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.zone-folder__collage i {
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-size: cover;
}

.zone-folder strong {
  max-width: 100%;
  padding-right: 44px;
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  white-space: normal;
}

.zone-folder small {
  color: var(--ds-color-text-muted);
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  font-weight: var(--ds-font-weight-semibold);
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.zone-folder em {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(87, 32, 69, 0.9);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zone-folder__icon {
  display: none;
}

.zone-folder__icon::before {
  display: none;
}

.zone-folder--wealth {
  --zone-tone: linear-gradient(145deg, #dbc8ff, #bfa4ec);
}

.zone-folder--fame {
  --zone-tone: linear-gradient(145deg, #ffc6c8, #e8949c);
}

.zone-folder--love {
  --zone-tone: linear-gradient(145deg, #ffd1df, #f2a8c2);
}

.zone-folder--family {
  --zone-tone: linear-gradient(145deg, #d6ead7, #a9d2af);
}

.zone-folder--health {
  --zone-tone: linear-gradient(145deg, #fff1bd, #f0d47a);
}

.zone-folder--creativity {
  --zone-tone: linear-gradient(145deg, #ffd6b8, #f0aa77);
}

.zone-folder--learning {
  --zone-tone: linear-gradient(145deg, #cfeafa, #9fcbe7);
}

.zone-folder--career {
  --zone-tone: linear-gradient(145deg, #c8d8ff, #8faee5);
}

.zone-folder--travel {
  --zone-tone: linear-gradient(145deg, #f4f1ed, #d9d5cf);
}

.zones-grid--detail {
  display: block;
}

.zone-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.zone-card p {
  margin: 0;
}

.zone-card--center {
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.zone-card--detail {
  min-height: 0;
  padding: clamp(18px, 3vw, 30px);
}

.zone-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.zone-detail-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.86;
}

.zone-detail-hero p:not(.section-label) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 760;
}

.zone-detail-hero > span,
.zone-back {
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.zone-detail-hero > span {
  padding: 10px 12px;
  white-space: nowrap;
}

.zone-back {
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
}

.zone-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.zone-detail-main,
.zone-detail-side {
  display: grid;
  gap: 14px;
}

.zone-detail-side {
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface-soft);
}

.zone-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zone-library-grid .wallpaper-image-preview {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  place-items: initial !important;
  padding: 0 !important;
  background: transparent !important;
}

.zone-library-grid .wallpaper-image-preview img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.zone-detail-side > strong {
  color: var(--ds-color-accent);
  font-size: 0.72rem;
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zone-card__head span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-dark);
  font-weight: 900;
}

.upload-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.upload-area label {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  place-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(181, 48, 111, 0.46);
  border-radius: 22px;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, var(--accent-dark)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(181, 48, 111, 0.24);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: normal;
}

.upload-area label::before {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: var(--white);
  content: "↑";
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.upload-area input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-count {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.selected-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-height: 64px;
}

.selected-images--detail {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  max-height: 430px;
  overflow: auto;
  padding: 4px;
}

.selected-image-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 10px 18px rgba(45, 20, 32, 0.12);
}

.selected-image-tile > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, transparent 38%, rgba(36, 19, 27, 0.72));
}

.selected-image-tile b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.58rem;
}

.selected-image-tile i {
  display: flex;
  gap: 3px;
  font-style: normal;
}

.selected-image-tile em {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 950;
}

.selected-image-tile [data-zone-image-remove] {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 24px;
  color: #23151b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(35, 21, 27, 0.18);
  font-size: 0.82rem;
}

.selected-images small {
  align-self: center;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.zone-collage-sticker,
.preview-sticker {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(34, 12, 25, 0.22));
  pointer-events: none;
}

.zone-collage-sticker--1,
.preview-sticker--1 {
  top: 5%;
  left: 8%;
  transform: rotate(-9deg);
}

.zone-collage-sticker--2,
.preview-sticker--2 {
  right: 7%;
  top: 18%;
  transform: rotate(8deg);
}

.zone-collage-sticker--3,
.preview-sticker--3 {
  right: 16%;
  bottom: 8%;
  transform: rotate(-4deg);
}

.zone-collage-sticker--4 {
  left: 24%;
  bottom: 6%;
  transform: rotate(11deg);
}

.zone-collage-sticker--5 {
  top: 42%;
  left: 38%;
  transform: rotate(-14deg);
}

.zone-collage-sticker--6 {
  right: 34%;
  top: 4%;
  transform: rotate(5deg);
}

.zone-sticker-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(122, 74, 92, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.zone-sticker-tools summary {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.zone-sticker-tools[open] summary {
  margin-bottom: 10px;
}

.zone-sticker-library,
.zone-sticker-selected {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.zone-sticker-library button,
.zone-sticker-selected button {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.zone-sticker-library span {
  display: block;
  width: 86%;
  height: 86%;
  background: var(--sticker-preview) center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(64, 20, 48, 0.16));
}

.zone-sticker-selected img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.zone-sticker-selected button span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #23151b;
  box-shadow: 0 8px 18px rgba(35, 21, 27, 0.22);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.zone-text-field {
  position: relative;
}

.zone-text-field textarea {
  width: 100%;
}

.zone-text-field button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #23151b;
  box-shadow: 0 10px 22px rgba(35, 21, 27, 0.22);
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.library-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.library-row--detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.library-option {
  position: relative;
  display: grid;
  min-height: 74px;
  align-content: end;
  overflow: hidden;
  padding: 8px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(18, 15, 18, 0.02), rgba(18, 15, 18, 0.72)),
    var(--library-image) center / cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(45, 20, 32, 0.1);
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.library-option span {
  position: relative;
  z-index: 1;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.library-option:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(45, 20, 32, 0.16);
}

textarea,
.form-grid input,
.form-grid select {
  width: 100%;
  min-height: var(--ds-control-height);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: none;
  font-weight: var(--ds-font-weight-medium);
  transition:
    border-color var(--ds-motion-fast) var(--ds-ease-standard),
    box-shadow var(--ds-motion-fast) var(--ds-ease-standard);
}

textarea::placeholder,
.form-grid input::placeholder {
  color: var(--ds-color-text-subtle);
}

textarea {
  min-height: 92px;
  padding: var(--ds-space-4);
  resize: vertical;
}

.preview-tile {
  min-height: 108px;
}

.result-preview {
  aspect-ratio: 1.414 / 1;
}

.preview-collage {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.preview-collage i {
  display: block;
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-size: cover;
}

.preview-collage--1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.preview-collage--2,
.preview-collage--4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.preview-collage--3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}

.preview-collage--5,
.preview-collage--6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.preview-collage--7,
.preview-collage--8,
.preview-collage--9 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.preview-collage--10 {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.preview-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 22%, rgba(20, 15, 18, 0.66));
}

.preview-tile span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.preview-tile small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-weight: 900;
}

.form-grid input {
  min-height: 56px;
  padding: 0 16px;
}

.checkout-card {
  width: 100%;
  min-width: 0;
  padding: 24px;
}

.constructor-step[data-step="4"],
.constructor-step[data-step="4"] .form-grid {
  width: 100%;
  min-width: 0;
}

.premium-questions,
.package-result {
  display: grid;
  gap: 16px;
}

.premium-questions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-questions label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-weight: 900;
}

.premium-questions textarea {
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  resize: vertical;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.free-result-card,
.package-card,
.download-panel,
.email-preview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 226, 242, 0.12)),
    rgba(255, 255, 255, 0.12);
}

.free-result-card {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  align-items: center;
}

.free-result-card h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 0.96;
}

.free-result-card p {
  color: rgba(255, 255, 255, 0.82);
}

.package-card > span,
.email-preview-card > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  color: var(--white);
  font-weight: 780;
  line-height: 1.35;
}

.package-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  line-height: 1.45;
}

.mini-board-preview {
  position: relative;
  display: grid;
  aspect-ratio: 1.42;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-board-preview i {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -42px 40px rgba(0, 0, 0, 0.34);
}

.mini-board-preview i::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(24, 12, 19, 0.62));
}

.mini-zone-collage {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 2px;
}

.mini-zone-collage b {
  display: block;
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-size: cover;
}

.mini-zone-collage--1 {
  grid-template-columns: 1fr;
}

.mini-zone-collage--2 {
  grid-template-columns: repeat(2, 1fr);
}

.mini-zone-collage--3,
.mini-zone-collage--4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.zone-layout-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.zone-layout-tabs button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: none;
  font: inherit;
  font-size: 0.68rem;
  font-weight: var(--ds-font-weight-semibold);
  letter-spacing: 0.03em;
  cursor: pointer;
}

.zone-layout-tabs button.is-active {
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
  box-shadow: var(--ds-shadow-accent);
}

.preview-collage--layout-hero {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.preview-collage--layout-hero i:first-child {
  grid-row: 1 / -1;
}

.preview-collage--layout-asym {
  grid-template-columns: 1fr 1.25fr 0.9fr;
  grid-template-rows: 0.8fr 1.2fr;
}

.preview-collage--layout-asym i:nth-child(2) {
  grid-row: 1 / -1;
}

.preview-collage--layout-free {
  display: block;
}

.preview-collage--layout-free i {
  position: absolute;
  width: 46%;
  height: 46%;
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(50, 13, 31, 0.14);
}

.preview-collage--layout-free i:nth-child(1) {
  top: 6%;
  left: 7%;
  transform: rotate(-4deg);
}

.preview-collage--layout-free i:nth-child(2) {
  top: 12%;
  right: 8%;
  transform: rotate(5deg);
}

.preview-collage--layout-free i:nth-child(3) {
  bottom: 8%;
  left: 18%;
  transform: rotate(3deg);
}

.preview-collage--layout-free i:nth-child(4) {
  right: 12%;
  bottom: 10%;
  transform: rotate(-6deg);
}

.preview-collage--layout-free i:nth-child(n + 5) {
  display: none;
}

.mini-zone-collage--layout-hero {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.mini-zone-collage--layout-hero b:first-child {
  grid-row: 1 / -1;
}

.mini-zone-collage--layout-asym {
  grid-template-columns: 0.9fr 1.2fr;
  grid-template-rows: 0.9fr 1.1fr;
}

.mini-zone-collage--layout-asym b:nth-child(2) {
  grid-row: 1 / -1;
}

.mini-zone-collage--layout-free {
  display: block;
}

.mini-zone-collage--layout-free b {
  position: absolute;
  width: 48%;
  height: 48%;
  border-radius: 8px;
  box-shadow: 0 8px 14px rgba(50, 13, 31, 0.14);
}

.mini-zone-collage--layout-free b:nth-child(1) {
  top: 8%;
  left: 8%;
  transform: rotate(-4deg);
}

.mini-zone-collage--layout-free b:nth-child(2) {
  top: 14%;
  right: 9%;
  transform: rotate(5deg);
}

.mini-zone-collage--layout-free b:nth-child(3) {
  bottom: 10%;
  left: 18%;
  transform: rotate(3deg);
}

.mini-zone-collage--layout-free b:nth-child(4) {
  right: 10%;
  bottom: 8%;
  transform: rotate(-6deg);
}

.map-draft-preview {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--soft-pink) 74%, transparent), transparent 34%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--white) 84%, var(--soft-pink)), color-mix(in srgb, var(--white) 74%, var(--cream)));
  box-shadow: var(--shadow-soft);
}

.map-draft-preview__board {
  position: relative;
  display: grid;
  aspect-ratio: 1.42;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
  overflow: hidden;
  border-radius: 24px;
}

.map-draft-zone {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  min-height: 0;
  padding: clamp(8px, 1.2vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 -58px 44px rgba(50, 13, 31, 0.18);
}

.map-draft-zone::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(50, 13, 31, 0.46));
}

.map-draft-zone > span {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-draft-zone strong,
.map-draft-zone small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-draft-zone strong {
  color: var(--white);
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  font-weight: 950;
}

.map-draft-zone small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.52rem, 0.82vw, 0.72rem);
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-draft-preview__watermark {
  position: absolute;
  inset: -28%;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 22px;
  pointer-events: none;
  transform: rotate(-28deg);
  opacity: 0.18;
}

.map-draft-preview__watermark span {
  color: var(--ink);
  font-size: clamp(1rem, 2.4vw, 2.2rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.map-editor-toolbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
  backdrop-filter: blur(18px);
}

.map-editor-toolbar strong,
.map-editor-toolbar span {
  display: block;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
}

.map-editor-toolbar strong {
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-editor-toolbar span {
  margin-top: 2px;
  color: color-mix(in srgb, var(--ink) 64%, var(--muted));
  font-size: 0.72rem;
  font-weight: 750;
}

.map-editor-toolbar__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.map-editor-toolbar__swatches button {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 10px 24px rgba(91, 35, 58, 0.12);
}

.map-editor-toolbar__swatches button.is-active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(181, 48, 111, 0.12),
    0 12px 28px rgba(91, 35, 58, 0.18);
}

.map-editor-shell {
  position: relative;
  min-width: 0;
}

.map-editor-shell [data-sw-library-tab="emoji"] {
  display: none !important;
}

.map-editor-shell .sw-editor {
  align-items: start;
}

.map-editor-shell .sw-editor__stage {
  min-width: 0;
}

.map-editor-shell .sw-editor__phone {
  width: min(100%, 980px);
  max-width: 100%;
  margin-inline: auto;
  border-radius: 24px;
}

.map-editor-shell .sw-editor__headline h3 {
  text-transform: uppercase;
}

.map-editor-shell .sw-editor__stage,
.map-editor-shell .sw-editor__phone {
  position: relative;
}

.map-editor-shell .map-draft-preview__watermark {
  inset: 0;
  z-index: 6;
  mix-blend-mode: multiply;
  overflow: hidden;
  border-radius: inherit;
}

.map-scene-preview {
  position: relative;
  width: 100%;
  aspect-ratio: var(--scene-w) / var(--scene-h);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--soft-pink) 72%, transparent), transparent 34%),
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 34%),
    linear-gradient(145deg, var(--milk), var(--soft-pink));
}

.map-scene-preview__image,
.map-scene-preview__text {
  position: absolute;
  display: block;
}

.map-scene-preview__image {
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 24px rgba(50, 13, 31, 0.14);
}

.map-scene-preview__image--rounded {
  border-radius: 10px;
}

.map-scene-preview__image--polaroid {
  border: 6px solid var(--white);
  border-bottom-width: 18px;
  background-color: var(--white);
}

.map-scene-preview__image--cutout {
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 8px 12px rgba(50, 13, 31, 0.16));
}

.map-scene-preview__text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(8px, var(--scene-font), 18px);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 18px rgba(50, 13, 31, 0.22);
}

.map-scene-preview--result {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.map-preview-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 12px;
  margin-top: 14px;
}

.map-editor-shell .sw-editor__stage:fullscreen {
  display: grid;
  min-width: 100vw;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(135deg, #fff8f3, #f7dbe7);
}

.map-preview-viewer {
  position: fixed;
  inset: 0;
  z-index: 320;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: rgba(255, 248, 247, 0.98);
  overscroll-behavior: contain;
}

.map-preview-viewer[hidden] {
  display: none;
}

.map-preview-viewer__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: clamp(18px, 3vw, 30px);
  background: var(--ds-color-surface-soft);
  box-shadow: var(--ds-shadow-lg);
}

.map-preview-viewer__header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--ds-color-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.map-preview-viewer__header > strong {
  color: var(--ds-color-text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-preview-viewer__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-preview-viewer__controls button {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  font-weight: var(--ds-font-weight-bold);
  cursor: pointer;
}

.map-preview-viewer__controls [data-map-preview-close] {
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
  font-size: 1.25rem;
}

.map-preview-viewer__viewport {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 3vw, 32px);
  touch-action: none;
  cursor: grab;
}

.map-preview-viewer__viewport:active {
  cursor: grabbing;
}

.map-preview-viewer__content {
  width: min(100%, 1200px);
  transform-origin: center;
  will-change: transform;
}

.map-scene-preview--viewer {
  width: 100%;
  border-radius: clamp(10px, 2vw, 20px);
  box-shadow: 0 24px 80px rgba(72, 39, 55, 0.16);
}

@media (max-width: 520px) {
  .map-preview-viewer__header {
    min-height: 56px;
    padding-left: 12px;
  }

  .map-preview-viewer__header > strong {
    font-size: 0.68rem;
  }

  .map-preview-viewer__controls {
    gap: 4px;
  }

  .map-preview-viewer__controls button {
    min-width: 38px;
    min-height: 40px;
    padding: 0 8px;
  }

  .map-preview-viewer__viewport {
    padding: 8px;
  }
}

.map-editor-shell .sw-editor__stage:fullscreen .sw-editor__phone {
  width: min(96vw, 1280px);
  max-height: 92vh;
}

.final-brand-screen {
  display: grid;
  min-height: clamp(180px, 32vw, 420px);
  margin-top: clamp(18px, 2.4vw, 34px);
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.76), transparent 42%),
    linear-gradient(135deg, #fff8f3, #f7dbe7);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.final-brand-screen strong {
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.2rem, 11vw, 9rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0.04em;
}

.final-brand-screen span {
  color: color-mix(in srgb, var(--ink) 64%, var(--muted));
  font-size: clamp(0.78rem, 1.5vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .zone-layout-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-layout-tabs button {
    min-height: 42px;
    font-size: 0.62rem;
  }

  .map-draft-preview {
    padding: 10px;
  }

  .map-editor-toolbar {
    grid-template-columns: 1fr;
  }

  .map-editor-toolbar__swatches {
    justify-content: flex-start;
  }

  .map-draft-preview__board {
    gap: 5px;
    border-radius: 18px;
  }

  .map-draft-zone {
    padding: 7px;
    border-radius: 12px;
  }

  .map-draft-zone strong {
    font-size: 0.56rem;
  }

  .map-draft-zone small {
    font-size: 0.46rem;
    -webkit-line-clamp: 1;
  }

  .map-draft-preview__watermark {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 16px;
    opacity: 0.16;
  }

  .map-editor-shell .sw-editor__phone {
    border-radius: 18px;
  }

  .map-preview-actions {
    grid-template-columns: 1fr;
  }
}

.mini-board-preview i > img {
  position: absolute;
  z-index: 3;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(20, 8, 14, 0.28));
}

.mini-board-preview i > img:nth-of-type(1) {
  top: 6px;
  right: 7px;
  transform: rotate(8deg);
}

.mini-board-preview i > img:nth-of-type(2) {
  bottom: 18px;
  left: 8px;
  transform: rotate(-10deg);
}

.mini-board-preview small {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.mini-board-preview--a3 {
  aspect-ratio: 420 / 297;
  min-height: 360px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.is-watermarked::before {
  position: absolute;
  inset: 0;
  z-index: 6;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -32deg,
      transparent 0 58px,
      rgba(255, 255, 255, 0.18) 58px 60px,
      transparent 60px 112px
    );
}

.is-watermarked::after {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  content: "SHE WANTS · PREVIEW";
  pointer-events: none;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(1.4rem, 4vw, 4rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(-18deg);
}

.package-grid--locked .package-card--map {
  grid-column: 1 / -1;
}

.final-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.final-contact-grid label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.final-contact-grid input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 850;
}

.gift-mockup__card--vision {
  width: min(100%, 270px);
  height: 350px;
  padding: 18px;
}

.gift-mockup__card--vision strong {
  position: relative;
  z-index: 3;
  font-size: 1.8rem;
}

.gift-vision-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 7px;
  border: 2px solid rgba(224, 68, 140, 0.42);
  border-radius: 18px;
  background: #fff;
}

.gift-vision-grid i {
  display: block;
  min-height: 0;
  border-radius: 10px;
  background: var(--gift-img) center / cover;
}

.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mockup-card,
.brand-email-card,
.faq details,
.future-letter-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 70px rgba(91, 35, 58, 0.12);
  backdrop-filter: blur(18px);
}

.mockup-card {
  min-height: 440px;
  align-content: end;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 238, 247, 0.86)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 80px rgba(91, 35, 58, 0.16);
}

.mockup-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.94) 46%, rgba(255, 255, 255, 0.98));
}

.mockup-card > p,
.mockup-card > h3 {
  position: relative;
  z-index: 2;
}

.mockup-card h3,
.brand-email-card h3,
.future-letter-card h3 {
  margin: 0;
  color: #24131b;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.mockup-card p,
.brand-email-card p,
.future-letter-card p,
.faq p {
  margin: 0;
  color: rgba(36, 19, 27, 0.68);
  font-weight: 650;
  line-height: 1.55;
}

.mockup-card .section-label {
  color: var(--accent-dark);
  opacity: 0.72;
}

.brand-email-card h3,
.future-letter-card h3 {
  color: var(--white);
}

.brand-email-card p,
.future-letter-card p,
.faq p {
  color: rgba(255, 255, 255, 0.82);
}

.mockup-collage {
  position: absolute;
  inset: 22px 18px auto;
  height: 268px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(145deg, rgba(255, 237, 246, 0.96), rgba(234, 157, 197, 0.78));
  box-shadow: 0 28px 74px rgba(38, 16, 24, 0.22);
}

.mockup-collage i,
.mockup-collage span,
.mockup-collage b {
  position: absolute;
}

.mockup-collage i {
  display: block;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: var(--mock-img) center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(40, 14, 26, 0.22);
}

.mockup-collage i:nth-child(1) {
  inset: 12px auto auto 14px;
  width: 48%;
  height: 64%;
  transform: rotate(-4deg);
}

.mockup-collage i:nth-child(2) {
  inset: 34px 14px auto auto;
  width: 43%;
  height: 46%;
  transform: rotate(5deg);
}

.mockup-collage i:nth-child(3) {
  inset: auto 46px 18px auto;
  width: 44%;
  height: 38%;
  transform: rotate(-2deg);
}

.mockup-collage i:nth-child(4) {
  z-index: 4;
  inset: auto auto 18px 26px;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 0;
  background-size: contain;
  box-shadow: none;
  transform: rotate(-12deg);
}

.mockup-collage span {
  display: none;
  z-index: 5;
  left: 24px;
  bottom: 92px;
  max-width: 170px;
  color: #fff8c8;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 0.96;
  text-shadow: 0 10px 24px rgba(42, 14, 27, 0.28);
  transform: rotate(-5deg);
}

.mockup-collage b {
  display: none;
  right: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.mockup-a3 {
  position: absolute;
  inset: 24px 18px auto;
  display: grid;
  aspect-ratio: 420 / 297;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border: 10px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(38, 16, 24, 0.22);
}

.mockup-a3 i {
  min-height: 0;
  border-radius: 8px;
  background: var(--mock-img) center / cover;
}

.mockup-a3--collage {
  isolation: isolate;
}

.mockup-a3--collage i:nth-child(2n) {
  transform: rotate(1.5deg);
}

.mockup-a3--collage i:nth-child(3n) {
  transform: rotate(-1.5deg);
}

.mockup-a3--collage span,
.mockup-a3--collage b {
  position: absolute;
  z-index: 3;
  display: none;
  place-items: center;
  color: #24131b;
  font-family: "Montserrat", sans-serif;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 18px 44px rgba(38, 16, 24, 0.18);
}

.mockup-a3--collage span {
  right: 18px;
  bottom: 18px;
  width: 128px;
  height: 74px;
  border-radius: 12px;
  background: #fff7ce;
  font-size: 1rem;
  line-height: 1;
  transform: rotate(-4deg);
}

.mockup-a3--collage b {
  left: 18px;
  top: 18px;
  width: 120px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #3b0e24;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.mockup-gift-pass {
  position: absolute;
  inset: 26px 38px auto;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid rgba(35, 21, 27, 0.08);
  border-radius: 24px;
  color: #25151b;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 217, 129, 0.5), transparent 32%),
    linear-gradient(145deg, #fff, #ffeaf5);
  box-shadow: 0 30px 80px rgba(38, 16, 24, 0.22);
  transform: rotate(-3deg);
}

.mockup-gift-pass span,
.mockup-gift-pass small,
.brand-email-card span,
.brand-email-card small,
.future-letter-card span,
.mockup-a3--collage b {
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.mockup-gift-pass strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.74rem;
  font-weight: 950;
}

.brand-email-card::before,
.faq details::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
}

.mockup-gift-pass--collage {
  isolation: isolate;
  overflow: hidden;
}

.mockup-gift-pass--collage i {
  position: absolute;
  display: block;
  background: var(--mock-img) center / cover no-repeat;
}

.mockup-gift-pass--collage i:nth-child(1) {
  inset: 10px 12px auto auto;
  width: 46%;
  height: 66%;
  border: 6px solid #fff;
  border-radius: 10px;
  transform: rotate(6deg);
}

.mockup-gift-pass--collage i:nth-child(2) {
  left: 18px;
  bottom: 16px;
  width: 88px;
  height: 58px;
  background-size: contain;
  transform: rotate(-8deg);
}

.mockup-gift-pass--collage span,
.mockup-gift-pass--collage strong,
.mockup-gift-pass--collage small {
  position: relative;
  z-index: 2;
}

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

.brand-email-card {
  min-height: 360px;
  align-content: end;
  padding: 22px;
}

.brand-email-card > * {
  position: relative;
  z-index: 1;
}

.brand-email-card {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(35, 21, 27, 0.04), rgba(35, 21, 27, 0.5)),
    url("assets/moodboard.JPG") center / cover;
}

.brand-email-card--future {
  background:
    linear-gradient(180deg, rgba(35, 21, 27, 0.08), rgba(35, 21, 27, 0.58)),
    url("assets/cabin-cinema.JPG") center / cover;
}

.brand-email-card--gift {
  background:
    linear-gradient(180deg, rgba(35, 21, 27, 0.06), rgba(35, 21, 27, 0.54)),
    url("assets/yacht-flowers.JPG") center / cover;
}

.brand-email-card .button {
  width: fit-content;
  min-width: min(100%, 240px);
}

.gift-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin: 4px 0 10px;
}

.gift-flow-list span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--ds-color-border);
  border-radius: 999px;
  color: var(--ds-color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: var(--ds-font-weight-semibold);
}

.future-letter-card {
  margin-bottom: 16px;
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 217, 129, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
}

.future-letter-card h3 {
  max-width: 760px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 880px);
}

.faq {
  position: relative;
  width: var(--framed-section-width);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) 0;
  font-family: "Montserrat", sans-serif;
}

.faq .section-heading,
.faq .faq-grid {
  padding-inline: 0;
}

.faq .section-heading {
  width: min(100%, 880px);
}

.faq h2 {
  max-width: 940px;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.08;
  text-shadow: none;
}

.faq details {
  min-height: 70px;
  padding: 0;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.faq details::before {
  content: none;
}

.faq summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(122, 74, 92, 0.22);
  border-radius: 999px;
  content: "+";
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  background: rgba(253, 246, 243, 0.9);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  position: relative;
  z-index: 1;
  margin: 0 18px;
  padding: 0 0 14px;
  color: var(--ds-color-text-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.94rem;
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.55;
  animation: faqAnswerIn 160ms ease-out both;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tracker-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tracker-preview b {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.email-preview-card {
  grid-column: 1 / -1;
  color: var(--accent-dark);
  background:
    radial-gradient(circle at 90% 0%, rgba(247, 207, 131, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 228, 243, 0.72));
}

.package-card--questions ul {
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.premium-asset-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.premium-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-asset-preview--locked img {
  filter: blur(4px) saturate(0.92);
  transform: scale(1.04);
}

.package-grid--locked .package-card--questions ul,
.package-grid--locked .package-card--selfcare .heart-list,
.package-grid--locked .package-card--films ul {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
}

.heart-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.heart-list b {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px 12px 10px;
  color: #f05bab;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.18;
  text-align: center;
  z-index: 0;
}

.heart-list b::before,
.heart-list b::after {
  position: absolute;
  inset: 10px 18px 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
}

.heart-list b::after {
  border-radius: 999px 999px 0 0;
  transform: none;
}

.email-preview-card strong {
  font-size: 1.4rem;
}

.email-preview-card--premium {
  grid-column: 1 / -1;
  border-color: rgba(35, 21, 27, 0.12);
  color: #24131b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 239, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(224, 68, 140, 0.16), transparent 30%);
}

.email-preview-card p,
.download-panel p {
  margin: 0;
}

.download-panel {
  color: var(--white);
}

.download-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.package-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 16px;
  perspective: 1400px;
}

.package-showcase--premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-sheet {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 238, 248, 0.16)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 30px 80px rgba(64, 20, 48, 0.18);
  transform-origin: center bottom;
  animation: sheetFloat 6.4s ease-in-out infinite;
}

.result-sheet:nth-child(2n) {
  animation-delay: -1.8s;
}

.result-sheet:nth-child(3n) {
  animation-delay: -3.2s;
}

.result-sheet > span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.result-sheet--map {
  grid-column: span 2;
  min-height: 420px;
}

.package-showcase--premium .result-sheet--map {
  grid-column: span 2;
}

.unfolding-board {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
  transform-style: preserve-3d;
}

.unfolding-board::before,
.unfolding-board::after {
  position: absolute;
  inset: 18px;
  content: "";
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 226, 242, 0.24)),
    rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 52px rgba(64, 20, 48, 0.14);
  transform-origin: center left;
  animation: boardUnfold 5.8s ease-in-out infinite;
}

.unfolding-board::after {
  transform-origin: center right;
  animation-delay: -1s;
}

.unfolding-board .mini-board-preview {
  z-index: 2;
  transform-origin: center;
  animation: boardReveal 5.8s ease-in-out infinite;
}

.result-sheet--phone .wallpaper-preview {
  width: min(100%, 250px);
  margin-inline: auto;
}

.premium-feature-grid b {
  display: grid;
  min-height: 70px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.28;
  box-shadow: 0 12px 26px rgba(64, 20, 48, 0.12);
}

.result-sheet--questions,
.result-sheet--selfcare {
  min-height: 240px;
}

.premium-feature-grid,
.premium-elements-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.premium-elements-preview i {
  min-height: 86px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(145deg, rgba(255, 218, 235, 0.95), rgba(224, 68, 140, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.premium-elements-preview i:nth-child(2) {
  background:
    radial-gradient(circle at 64% 38%, rgba(255, 245, 207, 0.96), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(161, 92, 116, 0.2));
}

.premium-elements-preview i:nth-child(3) {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, rgba(225, 239, 221, 0.9), rgba(255, 229, 244, 0.72));
}

.premium-elements-preview i:nth-child(4) {
  background:
    radial-gradient(circle at 52% 34%, rgba(255, 247, 210, 0.95), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(103, 50, 103, 0.18));
}

.premium-included-badge {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-sheet--ai {
  min-height: 190px;
  color: var(--accent-dark);
  background:
    radial-gradient(circle at 88% 0%, rgba(247, 207, 131, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 228, 243, 0.72));
}

.result-sheet--ai strong {
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.result-sheet--ai p {
  margin: 0;
  color: color-mix(in srgb, var(--accent-dark) 62%, #24131b);
}

.success-message {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.78);
}

.success-message[hidden] {
  display: none;
}

.start-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(35, 14, 28, 0.48);
  backdrop-filter: blur(14px);
}

.start-choice-modal[hidden] {
  display: none;
}

.start-choice-card {
  width: min(100%, 720px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(247, 207, 131, 0.5), transparent 28%),
    linear-gradient(145deg, rgba(224, 68, 140, 0.96), rgba(112, 36, 83, 0.96));
  box-shadow: 0 34px 110px rgba(38, 10, 30, 0.42);
}

.start-choice-card--soft {
  width: min(100%, 620px);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 226, 169, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(255, 244, 250, 0.96), rgba(232, 122, 177, 0.92));
  color: #2a1421;
}

.start-choice-card--soft .section-label,
.start-choice-card--soft p:not(.section-label) {
  color: rgba(42, 20, 33, 0.72);
}

.start-choice-card--soft h3 {
  color: #2a1421;
}

.start-choice-card h3 {
  max-width: 620px;
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.92;
}

.start-choice-card p:not(.section-label) {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.start-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gift-code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
}

.gift-code-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.gift-code-panel input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.start-choice-close {
  margin-top: 18px;
  border: 0;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.box-order-modal {
  position: fixed;
  top: var(--box-order-viewport-top, 0px);
  right: 0;
  left: 0;
  z-index: 62;
  display: grid;
  width: 100%;
  height: var(--box-order-viewport-height, 100dvh);
  place-items: center;
  overflow: hidden;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  background: rgba(35, 14, 28, 0.52);
  backdrop-filter: blur(16px);
}

.box-order-modal[hidden] {
  display: none;
}

.box-order-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  max-height: calc(var(--box-order-viewport-height, 100dvh) - 44px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  color: #2a1421;
  background:
    radial-gradient(circle at 88% 8%, rgba(247, 207, 131, 0.32), transparent 28%),
    linear-gradient(145deg, rgba(255, 251, 247, 0.98), rgba(255, 232, 243, 0.96));
  box-shadow: 0 34px 110px rgba(38, 10, 30, 0.38);
}

.box-order-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.box-order-intro h3,
.box-order-success h4,
.early-access-panel h3 {
  max-width: 620px;
  margin: 8px 0 10px;
  color: #2a1421;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.box-order-intro p:not(.section-label),
.box-order-success p,
.early-access-panel > p:not(.section-label) {
  max-width: 590px;
  margin: 0;
  color: rgba(42, 20, 33, 0.72);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.58;
}

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

.box-order-progress span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 40, 92, 0.14);
  border-radius: 999px;
  color: rgba(42, 20, 33, 0.56);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.box-order-progress span.is-active,
.box-order-progress span.is-complete {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 34px rgba(154, 40, 92, 0.22);
}

.box-order-form {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 18px;
}

.box-order-step {
  display: none;
  gap: 16px;
}

.box-order-step.is-active {
  display: grid;
}

.box-order-step h4 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.box-order-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.box-order-grid label,
.box-order-choice label {
  display: grid;
  gap: 8px;
  color: rgba(42, 20, 33, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.box-order-grid label:first-child {
  grid-column: 1 / -1;
}

.box-order-grid input,
.box-order-grid textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(154, 40, 92, 0.14);
  border-radius: 16px;
  color: #2a1421;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.box-order-grid textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
}

.box-order-grid input:focus-visible,
.box-order-grid textarea:focus-visible {
  border-color: rgba(224, 68, 140, 0.72);
  box-shadow: 0 0 0 4px rgba(224, 68, 140, 0.14);
}

.box-order-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.box-order-choice--stacked {
  grid-template-columns: 1fr;
}

.box-order-choice--single {
  grid-template-columns: 1fr;
}

.box-order-choice label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(154, 40, 92, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

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

.box-order-choice span {
  color: #2a1421;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0;
}

.box-order-choice small {
  display: block;
  margin-top: 2px;
  color: rgba(42, 20, 33, 0.56);
  font-size: 0.74rem;
  font-weight: 800;
}

.box-order-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.box-order-actions [hidden] {
  display: none;
}

.box-order-actions .button:last-child {
  justify-self: end;
}

.box-order-success {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(224, 68, 140, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
}

.box-order-success[hidden] {
  display: none;
}

.early-access-panel {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 18px;
}

.early-access-panel[hidden] {
  display: none;
}

.early-access-panel h3 {
  max-width: 650px;
  margin: 8px 42px 0 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
}

.early-access-summary {
  display: grid;
  margin: 4px 0 0;
  border: 1px solid rgba(154, 40, 92, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
}

.early-access-summary div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(154, 40, 92, 0.1);
}

.early-access-summary div:last-child {
  border-bottom: 0;
}

.early-access-summary dt {
  color: rgba(42, 20, 33, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.early-access-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #2a1421;
  font-weight: 850;
}

.early-access-payment-box {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(224, 68, 140, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 50px rgba(154, 40, 92, 0.1);
}

.early-access-payment-box > div {
  display: grid;
  gap: 5px;
}

.early-access-payment-box span {
  color: rgba(42, 20, 33, 0.58);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.early-access-payment-box strong,
.early-access-payment-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #2a1421;
  font-family: inherit;
  font-size: clamp(1rem, 3vw, 1.28rem);
  font-weight: 900;
}

.early-access-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.early-access-copy-grid .button,
.early-access-actions .button {
  min-height: 48px;
}

.early-access-copy-status {
  min-height: 24px;
  margin: -8px 0 0;
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 850;
}

.early-access-qr-fallback {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(154, 40, 92, 0.28);
  border-radius: 20px;
  background: rgba(255, 245, 250, 0.72);
}

.early-access-qr-fallback p,
.early-access-hint {
  margin: 0;
  color: rgba(42, 20, 33, 0.66);
  font-size: 0.88rem;
  line-height: 1.5;
}

.early-access-actions {
  align-items: stretch;
}

.early-access-link {
  min-height: 48px;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.early-access-success-email {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.constructor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-6);
  padding: var(--ds-space-2);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ds-shadow-md);
  backdrop-filter: blur(22px);
}

body.is-zone-detail-open .constructor-actions {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  z-index: 108;
  width: min(720px, calc(100vw - 20px));
  margin: 0 auto;
}

body.is-zone-detail-open .constructor-panel {
  /* A backdrop-filter creates a containing block and traps the fixed zone nav. */
  backdrop-filter: none;
}

body.is-zone-detail-open .zone-card--detail {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

body.is-sw-editor-lightbox-open .constructor-actions,
body.is-map-preview-open .constructor-actions {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 18px;
}

.instagram-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@keyframes tileAssemble {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(14px);
  }

  22%,
  76% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0.74;
    transform: scale(1.025) translateY(-3px);
  }
}

@keyframes phoneAssemble {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }

  22%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.82;
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes phoneLight {
  0%,
  100% {
    transform: translateX(-20%) rotate(-18deg);
  }

  50% {
    transform: translateX(85%) rotate(-18deg);
  }
}

.library-updated-notice {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  bottom: 22px;
  color: var(--ds-color-text);
  font-size: var(--ds-font-size-caption);
  font-weight: var(--ds-font-weight-semibold);
  left: 50%;
  opacity: 0;
  padding: 11px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  box-shadow: var(--ds-shadow-md);
  transition:
    opacity var(--ds-motion-base) var(--ds-ease-standard),
    transform var(--ds-motion-base) var(--ds-ease-standard);
  z-index: 10000;
}

.library-updated-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes stickerWiggle {
  0%,
  100% {
    transform: rotate(-6deg) scale(1);
  }

  50% {
    transform: rotate(7deg) scale(1.08);
  }
}

@keyframes ribbonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(6px) rotate(5deg);
  }
}

@keyframes phonePreviewFloat {
  0%,
  100% {
    transform: rotateY(-8deg) rotateX(3deg) translateY(0);
  }

  50% {
    transform: rotateY(-3deg) rotateX(1deg) translateY(-10px);
  }
}

@keyframes miniPhotoGlow {
  0%,
  100% {
    filter: saturate(1) brightness(1);
    transform: translateY(0) scale(1);
  }

  50% {
    filter: saturate(1.14) brightness(1.06);
    transform: translateY(-3px) scale(1.025);
  }
}

@keyframes sheetFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateZ(0deg);
  }

  50% {
    transform: translateY(-10px) rotateX(2deg) rotateZ(-0.8deg);
  }
}

@keyframes boardUnfold {
  0%,
  100% {
    opacity: 0.42;
    transform: rotateY(12deg) translateX(-10px) scale(0.96);
  }

  50% {
    opacity: 0.8;
    transform: rotateY(0deg) translateX(0) scale(1);
  }
}

@keyframes boardReveal {
  0%,
  100% {
    transform: scale(0.96) rotateX(2deg);
  }

  50% {
    transform: scale(1) rotateX(0deg);
  }
}

@keyframes collageFloat {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.12) brightness(1.06);
  }
}

@keyframes collagePulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.12);
  }
}

@keyframes floatGradient {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(26px, -28px, 0) rotate(9deg);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(0) rotate(15deg);
  }

  50% {
    transform: translateX(125vw) rotate(15deg);
  }
}

@keyframes stepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 680px) {
  .site-nav {
    display: flex;
  }

  .hero__actions {
    display: grid;
    justify-items: start;
  }

  .hero__actions .button {
    min-width: 288px;
  }

  .hero__actions .button--gift-secondary {
    min-width: 228px;
    min-height: 48px;
  }

  .button {
    min-width: 220px;
  }

  .horizontal-scroll {
    grid-auto-columns: unset;
    grid-auto-flow: unset;
    overflow: visible;
    padding-bottom: 0;
  }

  .result-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.5fr);
  }

  .moodboard-preview {
    grid-column: 1 / -1;
  }

  .filled-zones {
    grid-column: 1 / -1;
  }

  .form-grid,
  .constructor__top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .library-browser__grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (max-width: 1024px) {
  html,
  body,
  main,
  .section,
  .constructor-panel,
  .constructor-form,
  .phone-builder {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .constructor-panel {
    padding-inline: 14px;
  }

  .result-showcase {
    display: grid;
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 4px 0 0;
    scroll-snap-type: none;
  }

  .product-format {
    width: min(100% - 20px, var(--max));
    padding: 42px 0;
    border-radius: 0;
  }

  .product-format::before {
    content: none;
  }

  .product-format__heading h2,
  .benefits .section-heading h2,
  .faq h2 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.08;
  }

  .product-format__heading > p:not(.section-label) {
    font-size: 0.98rem;
  }

  .format-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    overflow: visible;
  }

  .format-card,
  .format-card--box {
    min-height: auto;
    border-radius: 28px;
  }

  .format-card__preview,
  .format-card--box .format-card__preview {
    min-height: clamp(180px, 31svh, 270px);
  }

  .format-card__body {
    gap: 12px;
    padding: 20px;
  }

  .format-card__body h3 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .format-card__body p {
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .format-card__list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .format-card__list li {
    min-height: 21px;
    padding-left: 0;
    font-size: 0.8rem;
    line-height: 1.26;
  }

  .format-card__list li::before {
    content: none;
  }

  .format-card--box .format-card__list li {
    padding-left: 0;
  }

  .format-card--box .format-card__list li::before {
    content: none;
  }

  .format-card .button {
    min-height: 52px;
    margin-top: 2px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .format-card__category {
    top: 14px;
    left: 14px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.66rem;
  }

  .library-browser__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-folder-intro h3 {
    max-width: none;
    font-size: clamp(1.85rem, 10vw, 2.75rem);
  }

  .zone-folder-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .zone-folder {
    min-height: 148px;
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .zone-folder strong {
    font-size: clamp(1rem, 5vw, 1.25rem);
  }

  .zone-folder small {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .public-folder-card {
    min-height: 178px;
    padding: 10px;
    border-radius: 18px;
  }

  .public-folder-card__preview {
    height: 86px;
    border-radius: 14px;
  }

  .public-folder-card__head,
  .public-folder-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .public-folder-card__foot b {
    width: 100%;
  }

  .library-browser__top,
  .image-lightbox__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .image-lightbox__bar .button {
    width: 100%;
    min-width: 0;
  }

  .style-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .premium-questions,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .phone-editor-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  .heart-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pinterest-board {
    min-height: 340px;
    grid-auto-rows: 76px;
  }

  .site-nav {
    display: flex;
    width: auto;
    gap: 14px;
  }

  .site-nav__links {
    display: flex;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .hero__content {
    gap: 18px;
  }

  .hero__text {
    font-size: 0.96rem;
    line-height: 1.55;
    padding: 0;
  }

  .live-board {
    padding: 16px;
  }

  .library-image-card {
    border-radius: 18px;
  }

  .library-image-card__preview {
    border-radius: 13px;
  }

  .library-image-card__meta {
    grid-template-columns: 1fr;
  }

  .library-image-card__meta button {
    width: 100%;
  }

  .filled-zones {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-card {
    min-height: 520px;
  }

  .format-card--box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 420px;
  }

  .format-card--box .format-card__preview {
    min-height: 280px;
  }

  .zones-grid {
    grid-template-columns: 1fr;
  }

  .zone-folder-intro {
    align-items: start;
    flex-direction: column;
    min-height: auto;
  }

  .zone-folder-intro h3 {
    max-width: none;
    font-size: clamp(2rem, 5.6vw, 3.8rem);
  }

  .zone-folder-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

@media (max-width: 979px) {
  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-card,
  .format-card--box {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 32svh) auto;
    min-height: 0;
  }

  .format-card__preview,
  .format-card--box .format-card__preview {
    min-height: 210px;
  }

  .gift-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .digital-guide-card,
  .brand-style-card {
    grid-template-columns: 1fr;
  }

  .guide-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-abstract-board {
    min-height: 240px;
  }

  .guide-abstract-board__grid {
    width: min(100%, 220px);
  }

  .brand-style-card__preview {
    min-height: 220px;
  }

  .brand-phone-preview__screen {
    width: min(100%, 280px);
  }

  .zone-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-folder {
    min-height: 128px;
  }

  .zone-detail-layout,
  .zone-detail-hero {
    grid-template-columns: 1fr;
  }

  .zone-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-detail-side,
  .library-row--detail,
  .selected-images--detail {
    max-height: none;
  }

  .selected-images--detail {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }

  .phone-editor-grid {
    grid-template-columns: 1fr;
  }

  .phone-editor-grid [data-wallpaper-preview] {
    order: -1;
  }

  .phone-editor-preview {
    position: static;
    padding: 12px;
  }

  .free-result-card {
    grid-template-columns: 1fr;
  }

  .package-showcase,
  .package-showcase--premium {
    grid-template-columns: 1fr;
  }

  .result-sheet--map,
  .package-showcase--premium .result-sheet--map {
    grid-column: auto;
  }

  .unfolding-board {
    min-height: 280px;
  }

  .gift-code-panel,
  .start-choice-actions {
    grid-template-columns: 1fr;
  }

  .wallpaper-preview {
    width: min(100%, 320px);
  }

  .sticker-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 360px;
  }

  .gift-packages .button {
    width: 100%;
  }
}

@media (max-width: 679px) {
  .format-card,
  .format-card--box {
    min-height: auto;
    grid-template-rows: clamp(180px, 31svh, 270px) auto;
  }
}

/* Mobile photo libraries: one geometry model for homepage, screen and map editors. */
.library-browser__grid,
.phone-builder .wallpaper-image-grid,
.zone-detail-side .zone-library-grid {
  display: grid;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  align-items: start;
  gap: 10px !important;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.library-browser__grid .library-image-card,
.phone-builder .wallpaper-image-grid .library-image-card,
.zone-detail-side .zone-library-grid .library-image-card {
  position: relative;
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 6px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  contain: none !important;
  transform: none !important;
}

.library-browser__grid .library-image-card__preview,
.phone-builder .wallpaper-image-grid .library-image-card__preview,
.zone-detail-side .zone-library-grid .library-image-card__preview {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

.library-browser__grid .library-image-card__preview img,
.phone-builder .wallpaper-image-grid .library-image-card__preview img,
.zone-detail-side .zone-library-grid .library-image-card__preview img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.library-browser__grid .library-image-card__meta,
.phone-builder .wallpaper-image-grid .library-image-card__meta,
.zone-detail-side .zone-library-grid .library-image-card__meta {
  position: static !important;
  display: grid !important;
  grid-template-columns: 1fr;
  min-height: 34px;
  gap: 6px;
}

.library-browser__grid .library-image-card::after,
.phone-builder .wallpaper-image-grid .library-image-card::after,
.zone-detail-side .zone-library-grid .library-image-card::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  .library-browser__grid,
  .phone-builder .wallpaper-image-grid,
  .zone-detail-side .zone-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow-x: clip;
  }

  .zone-detail-side {
    max-height: none;
    overflow: visible;
  }
}

/* ISSUE 05B — landing-only visual accents and browse-only library preview. */
.hero-dreamscape {
  position: absolute;
  isolation: isolate;
  z-index: 0;
  inset: 18px 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.94) 0 8%, transparent 28%),
    radial-gradient(circle at 20% 58%, rgba(225, 84, 143, 0.15), transparent 38%),
    radial-gradient(circle at 84% 78%, rgba(232, 154, 143, 0.17), transparent 31%),
    var(--ds-color-surface-pink);
  box-shadow: 0 30px 80px rgba(91, 35, 58, 0.1);
}

.hero-dreamscape::before,
.hero-dreamscape::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-dreamscape::before {
  top: 12%;
  right: 8%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(181, 48, 111, 0.16);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.24), 0 0 0 68px rgba(181, 48, 111, 0.05);
}

.hero-dreamscape::after {
  bottom: -14%;
  left: -10%;
  width: 58%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(2px);
}

.hero-dreamscape__halo {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 47%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(181, 48, 111, 0.12);
  filter: blur(24px);
  transform: translate(-50%, -50%);
  animation: hero-breathe 7s ease-in-out infinite;
}

.hero-dreamscape__sticker {
  position: absolute;
  z-index: 3;
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 0 20px;
  border: 1px solid rgba(181, 48, 111, 0.22);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 16px 38px rgba(91, 35, 58, 0.14);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}

.hero-dreamscape__sticker--one {
  top: 18%;
  left: 10%;
  transform: rotate(-5deg);
  animation: hero-float-one 7.6s ease-in-out infinite;
}

.hero-dreamscape__sticker--two {
  top: 48%;
  right: 7%;
  color: var(--white);
  border-color: transparent;
  background: var(--accent);
  transform: rotate(4deg);
  animation: hero-float-two 8.4s ease-in-out infinite;
}

.hero-dreamscape__sticker--three {
  right: 18%;
  bottom: 12%;
  transform: rotate(-3deg);
  animation: hero-float-one 9.2s ease-in-out -2s infinite;
}

.hero-dreamscape__sticker--four {
  top: 14%;
  right: 30%;
  color: var(--accent-dark);
  border-color: rgba(181, 48, 111, 0.22);
  background: rgba(255, 253, 250, 0.9);
  transform: rotate(3deg);
  animation: hero-float-two 8.8s ease-in-out -3s infinite;
}

.hero-dreamscape__sticker--five {
  right: 7%;
  bottom: 35%;
  transform: rotate(6deg);
  animation: hero-float-one 9.6s ease-in-out -1s infinite;
}

.hero-dreamscape__sticker--six {
  bottom: 9%;
  left: 34%;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.74);
  transform: rotate(-2deg);
  animation: hero-float-two 10.2s ease-in-out -5s infinite;
}

.hero-dreamscape__blossom {
  position: absolute;
  z-index: 2;
  width: 48px;
  aspect-ratio: 1;
  animation: hero-drift 14s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.hero-dreamscape__blossom i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 24px;
  margin: -22px 0 0 -8px;
  border: 1px solid rgba(181, 48, 111, 0.28);
  border-radius: 60% 60% 48% 48%;
  background: rgba(255, 253, 250, 0.82);
  box-shadow: 0 7px 18px rgba(91, 35, 58, 0.1);
  transform-origin: 50% 22px;
}

.hero-dreamscape__blossom i:nth-child(1) { transform: rotate(0deg); }
.hero-dreamscape__blossom i:nth-child(2) { transform: rotate(90deg); }
.hero-dreamscape__blossom i:nth-child(3) { transform: rotate(180deg); }
.hero-dreamscape__blossom i:nth-child(4) { transform: rotate(270deg); }
.hero-dreamscape__blossom b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.hero-dreamscape__blossom--one { top: 27%; right: 22%; }
.hero-dreamscape__blossom--two { right: 28%; bottom: 18%; transform: scale(0.72); animation-delay: -5s; }

.hero-dreamscape__heart,
.hero-dreamscape__spark {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  text-shadow: 0 10px 24px rgba(181, 48, 111, 0.18);
  animation: hero-twinkle 4.8s ease-in-out infinite;
}

.hero-dreamscape__heart { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.hero-dreamscape__heart--one { top: 9%; left: 45%; }
.hero-dreamscape__heart--two { right: 12%; bottom: 8%; color: var(--accent-dark); animation-delay: -1.6s; }
.hero-dreamscape__spark { font-size: clamp(1.25rem, 2.2vw, 2rem); }
.hero-dreamscape__spark--one { top: 8%; right: 10%; }
.hero-dreamscape__spark--two { bottom: 12%; left: 8%; color: #e89a8f; animation-delay: -2.2s; }
.hero-dreamscape__spark--three { top: 57%; left: 43%; color: var(--accent-dark); animation-delay: -3.4s; }

.hero-dreamscape__pearl {
  position: absolute;
  z-index: 2;
  width: 16px;
  aspect-ratio: 1;
  border: 1px solid rgba(181, 48, 111, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(91, 35, 58, 0.14);
  animation: hero-twinkle 6.8s ease-in-out infinite;
}

.hero-dreamscape__pearl--one { top: 19%; right: 8%; width: 12px; }
.hero-dreamscape__pearl--two { top: 23%; right: 11%; width: 7px; animation-delay: -2s; }
.hero-dreamscape__pearl--three { right: 7%; bottom: 23%; width: 20px; animation-delay: -4s; }

.hero-dreamscape__petal {
  position: absolute;
  z-index: 1;
  width: 38px;
  height: 78px;
  border: 1px solid rgba(181, 48, 111, 0.22);
  border-radius: 80% 20% 75% 25%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(38deg);
  animation: hero-drift 12s ease-in-out infinite;
}

.hero-dreamscape__petal--one { top: 31%; right: 35%; }
.hero-dreamscape__petal--two { right: 13%; bottom: 9%; width: 28px; height: 58px; transform: rotate(-26deg); animation-delay: -5s; }

.hero-dreamscape__editorial-line {
  position: absolute;
  z-index: 1;
  top: 18%;
  right: 4%;
  width: 29%;
  height: 64%;
  border: 1px solid rgba(181, 48, 111, 0.14);
  border-left-color: transparent;
  border-radius: 0 999px 999px 0;
  transform: rotate(-5deg);
}

@keyframes hero-float-one {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px -7px; }
}

@keyframes hero-float-two {
  0%, 100% { translate: 0 0; }
  50% { translate: -6px 7px; }
}

@keyframes hero-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 7px -9px; }
}

@keyframes hero-twinkle {
  0%, 100% { opacity: 0.68; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.landing-motion-ready main > .product-overview,
.landing-motion-ready main > .product-format,
.landing-motion-ready main > .benefits,
.landing-motion-ready main > .gift,
.landing-motion-ready main > .faq {
  opacity: 0;
  transform: translateY(22px);
}

.landing-motion-ready main > .is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-format {
  padding-inline: clamp(20px, 3vw, 38px);
  border: 1px solid rgba(181, 48, 111, 0.1);
  border-radius: clamp(30px, 4vw, 48px);
  background: color-mix(in srgb, var(--ds-color-surface-pink) 46%, transparent);
  overflow: hidden;
}

.format-card__body {
  grid-template-rows: auto auto auto 1fr auto;
}

.format-card__price {
  display: grid;
  gap: 5px;
  width: 100%;
  margin: 0;
  text-transform: none;
}

.format-card__price strong {
  color: var(--accent);
  font-size: clamp(2rem, 2.6vw, 2.375rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.format-card__price small {
  color: var(--ds-color-text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

.format-card__price small:empty {
  display: none;
}

.format-card__sparkle {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 20px rgba(181, 48, 111, 0.22);
  pointer-events: none;
  opacity: 0.84;
  animation: product-sparkle 7s ease-in-out infinite;
}

.format-card__sparkle--one { top: 18px; right: 18px; font-size: 1.3rem; }
.format-card__sparkle--two { right: 48px; bottom: 18px; font-size: 0.92rem; animation-delay: -3s; }

@keyframes product-sparkle {
  0%, 100% { opacity: 0.58; transform: scale(0.94); }
  50% { opacity: 0.96; transform: scale(1.03); }
}

.landing-motion-ready .format-card {
  opacity: 0;
  transform: translateY(18px);
}

.landing-motion-ready .format-card.is-card-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms ease var(--card-delay, 0ms),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0ms),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.format-card.is-card-revealed .format-card__preview img {
  animation: product-image-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--card-delay, 0ms) + 80ms);
}

@keyframes product-image-enter {
  from { opacity: 0.82; transform: translateY(10px) scale(calc(var(--preview-zoom, 1) - 0.03)); }
  to { opacity: 1; transform: translateY(0) scale(var(--preview-zoom, 1)); }
}

.format-card--featured {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--ds-color-border));
  background: color-mix(in srgb, var(--ds-color-surface-pink) 58%, white);
  box-shadow: 0 24px 54px rgba(181, 48, 111, 0.18);
}

.format-card--featured .format-card__category {
  color: #fff8eb;
  border-color: rgba(184, 141, 85, 0.72);
  background: var(--accent-dark);
}

.format-card--featured .button {
  color: var(--white);
  background: var(--accent);
  box-shadow: var(--ds-shadow-accent);
}

.benefits {
  position: relative;
}

.library-card--full {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--ds-color-border));
  background: var(--ds-color-surface-pink);
}

.public-folder-card__preview span {
  transition: transform 360ms ease, filter 240ms ease;
}

.public-folder-card:hover .public-folder-card__preview span,
.public-folder-card:focus-visible .public-folder-card__preview span {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.public-folder-card:hover .public-folder-card__foot b,
.public-folder-card:focus-visible .public-folder-card__foot b {
  color: var(--white);
  background: var(--accent);
}

.faq-grid summary::after {
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.faq-grid details[open] summary::after {
  transform: rotate(180deg);
}

.public-library-preview {
  position: fixed;
  z-index: 980;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(59, 14, 36, 0.28);
  backdrop-filter: blur(16px);
}

.public-library-preview[hidden] { display: none; }

.public-library-preview__panel {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  max-height: min(880px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--ds-color-border));
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-soft);
  box-shadow: 0 34px 90px rgba(59, 14, 36, 0.24);
}

.public-library-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.public-library-preview__header > div { display: grid; gap: 6px; }
.public-library-preview__header h2 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 3.5rem); text-shadow: none; }
.public-library-preview__header p:not(.section-label),
.public-library-preview__note { color: var(--ds-color-text-muted); }

.public-library-preview__header button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ds-color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent-dark);
  background: var(--ds-color-surface);
  font-size: 1.6rem;
}

.public-library-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-library-preview__grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface-pink);
}

.public-library-preview__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.public-library-preview__grid figure:hover img { transform: scale(1.035); }
.public-library-preview__note { margin: 0; font-size: 0.82rem; }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 450px;
    padding: 36px 18px 38px !important;
  }

  .hero-dreamscape {
    inset: 8px 0 14px;
    min-height: 0;
    border-radius: 28px;
  }

  .hero-dreamscape__sticker {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .hero-dreamscape__sticker--one { top: auto; bottom: 7%; left: 7%; }
  .hero-dreamscape__sticker--two { top: auto; right: 7%; bottom: 7%; }
  .hero-dreamscape__sticker--three {
    display: grid;
    top: 9%;
    right: 6%;
    bottom: auto;
    font-size: 0.6rem;
  }
  .hero-dreamscape__sticker--four,
  .hero-dreamscape__sticker--five,
  .hero-dreamscape__sticker--six,
  .hero-dreamscape__pearl,
  .hero-dreamscape__petal,
  .hero-dreamscape__editorial-line,
  .hero-dreamscape__blossom--two,
  .hero-dreamscape__heart--two,
  .hero-dreamscape__spark--three { display: none; }

  .hero-dreamscape__blossom { width: 38px; }
  .hero-dreamscape__blossom i { width: 14px; height: 20px; margin: -18px 0 0 -7px; transform-origin: 50% 18px; }
  .hero-dreamscape__blossom--one {
    top: 8%;
    right: auto;
    left: 7%;
  }

  .format-card__price strong { font-size: clamp(1.75rem, 8vw, 2rem); }

  .benefits .section-heading { gap: 8px; margin-bottom: 14px; }
  .product-format { padding-inline: 14px; border-radius: 28px; }
  .benefits .section-heading h2 { font-size: clamp(1.8rem, 9vw, 2.55rem); }
  .library-card--full { padding: 16px; }
  .library-card__intro { gap: 6px; margin-bottom: 10px; }
  .library-card__intro h3 { font-size: 1.15rem; }
  .library-card__intro p { font-size: 0.82rem; }
  .public-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .public-folder-card { min-height: 160px; gap: 8px; padding: 9px; border-radius: 18px; }
  .public-folder-card__preview { height: 86px; border-radius: 13px; gap: 4px; }
  .public-folder-card__head strong { font-size: 0.82rem; }
  .public-folder-card__head small { font-size: 0.58rem; }
  .public-folder-card__foot small { display: none; }
  .public-folder-card__foot b { width: 100%; min-height: 28px; padding: 0 7px; font-size: 0.52rem; }
  .library-browser__top strong { font-size: 1.2rem; }

  .public-library-preview { place-items: end center; padding: 10px 10px max(10px, env(safe-area-inset-bottom)); }
  .public-library-preview__panel { max-height: calc(100dvh - 20px); gap: 14px; padding: 16px; border-radius: 24px; }
  .public-library-preview__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .public-library-preview__header h2 { font-size: 1.8rem; }
}

@media (max-width: 390px) {
  .public-library-preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dreamscape *,
  .hero-dreamscape__halo {
    animation: none !important;
  }

  .landing-motion-ready main > .product-overview,
  .landing-motion-ready main > .product-format,
  .landing-motion-ready main > .benefits,
  .landing-motion-ready main > .gift,
  .landing-motion-ready main > .faq {
    opacity: 1;
    transform: none;
  }
}

/* ISSUE 05C — compact fixed header, safe anchors and restrained product motion. */
.landing-motion-ready .format-card.is-card-revealed:hover {
  transform: translateY(-5px);
}

@media (max-width: 679px) {
  .landing-motion-ready .format-card.is-card-revealed:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-motion-ready .format-card,
  .landing-motion-ready .format-card.is-card-revealed {
    opacity: 1;
    transform: none;
  }

  .format-card__sparkle,
  .format-card.is-card-revealed .format-card__preview img,
  .hero-dreamscape__blossom {
    animation: none !important;
  }
}

@media (min-width: 980px) {
  .style-world-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-showcase {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.42fr) minmax(260px, 0.55fr);
  }

  .filled-zones {
    grid-column: auto;
  }

  .zones-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zone-card--center {
    grid-column: span 2;
  }

  .live-tile,
  .preview-tile {
    min-height: 130px;
  }

  .live-tile--center {
    min-height: 150px;
  }
}

@media (max-width: 679px) {
  body.is-constructor-open .site-header {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    z-index: 26;
    display: block;
    width: min(100% - 20px, var(--max));
    margin-top: 8px;
    padding: 14px 18px;
    border-radius: 24px;
  }

  body.is-constructor-open .site-header .site-nav {
    display: none;
  }

  body.is-constructor-open .site-header .logo {
    gap: 2px;
  }

  body.is-constructor-open .site-header .logo span {
    font-size: 0.82rem;
  }

  body.is-constructor-open .site-header .logo small {
    font-size: 0.52rem;
  }

  body.is-map-flow .constructor-step[data-step="1"] .brand-style-card {
    display: none;
  }

  body.is-map-flow .constructor-step[data-step="1"] .digital-guide-card {
    margin-top: 0;
  }

  .brand-style-card {
    padding: 18px;
  }

  .digital-guide-card {
    padding: 18px;
  }

  .guide-abstract-board {
    min-height: 210px;
    padding: 16px;
  }

  .guide-abstract-board__grid {
    width: min(100%, 188px);
    gap: 6px;
    border-radius: 20px;
  }

  .guide-abstract-board__grid i {
    border-radius: 11px;
  }

  .guide-step-grid {
    grid-template-columns: 1fr;
  }

  .guide-step-grid article {
    min-height: 0;
  }

  .sticker-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticker-library-card {
    min-height: 122px;
  }

  .emoji-palette,
  .selected-stickers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section {
    width: min(100% - 20px, var(--max));
    padding: 42px 0;
  }

  .site-header,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .hero {
    width: min(100% - 20px, var(--max));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 32px;
  }

  .hero h1 span {
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.1;
  }

  .hero h1 small {
    font-size: clamp(22px, 3.5vw, 36px);
    line-height: 1.1;
  }

  .hero__actions {
    justify-items: stretch;
  }

  .hero__actions .button {
    width: 100%;
  }

  .button--gift-secondary {
    min-height: 48px !important;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
    max-height: 440px;
    border-radius: 22px;
  }

  .product-overview {
    grid-template-columns: 1fr;
    padding: 38px 0 46px;
  }

  .product-overview h2 {
    font-size: 2.65rem;
    line-height: 1.06;
  }

  .product-overview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .style-tabs {
    gap: 7px;
  }

  .style-tab {
    min-height: 46px;
    padding: 0 8px;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3.2rem);
  }

  .live-board,
  .hero-phone__frame,
  .library-card,
  .gift-card,
  .constructor-panel {
    border-radius: 28px;
  }

  .live-tile,
  .finished-board article,
  .preview-tile {
    min-height: 88px;
    border-radius: 17px;
    font-size: 0.52rem;
  }

  .phone-screen {
    min-height: 360px;
  }

  .hero-phone__screen {
    min-height: 480px;
  }

  .style-world {
    min-height: 210px;
    padding: 18px;
  }

  .gift-mockup {
    min-height: 220px;
  }

  .gift-mockup__card {
    width: min(88%, 320px);
    padding: 20px;
  }

  .constructor-panel {
    padding: 14px;
    overflow: hidden;
  }

  .constructor__top {
    gap: 10px;
    margin-bottom: 14px;
  }

  .constructor-copy {
    gap: 10px;
  }

  .constructor-copy h3 {
    overflow-wrap: normal;
    font-size: clamp(1.45rem, 8vw, 2.35rem);
    line-height: 0.96;
  }

  .constructor-copy p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .zones-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .zone-folder-intro {
    padding: 16px;
    border-radius: 22px;
  }

  .zone-folder-intro h3 {
    max-width: none;
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .zone-folder-grid {
    grid-template-columns: 1fr;
  }

  .zone-folder {
    min-height: 118px;
  }

  .zone-card {
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .zone-card__head h3 {
    font-size: 1rem;
    white-space: nowrap;
  }

  .zone-card__head span {
    min-width: 30px;
    height: 30px;
  }

  .zone-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .zone-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .zone-detail-hero h3 {
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .zone-detail-hero p:not(.section-label) {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .zone-detail-hero > span,
  .zone-back {
    justify-self: start;
    min-height: 40px;
  }

  .zone-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    overflow: hidden;
  }

  .zone-detail-main,
  .zone-detail-side {
    min-width: 0;
    width: 100%;
  }

  .zone-detail-side {
    max-height: none;
    padding: 12px;
    overflow: visible;
    border-radius: 20px;
  }

  .zone-detail-side > strong {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .upload-area {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-area label {
    min-height: 52px;
    border-radius: 16px;
    font-size: 0.64rem;
  }

  .library-row {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .library-option {
    min-height: 78px;
  }

  .phone-builder-card,
  .phone-wallpaper-result {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    padding: 14px;
    border-radius: 22px;
  }

  .phone-builder-card--stable .phone-builder-copy {
    gap: 6px;
  }

  .phone-builder-card--stable .phone-builder-copy .section-label {
    display: none;
  }

  .phone-builder-card--stable .phone-builder-copy h3 {
    font-size: clamp(1.42rem, 8vw, 2rem);
    line-height: 1;
  }

  .phone-builder-card--stable .phone-builder-copy p:not(.section-label) {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .phone-editor-panel,
  .gift-form {
    padding: 12px;
    border-radius: 20px;
  }

  .segmented-controls button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.62rem;
  }

  .wallpaper-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallpaper-folder-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
    gap: 10px;
    padding-right: 0;
  }

  .wallpaper-image-grid .library-image-card__preview,
  .library-image-card__preview {
    min-height: 0;
  }

  .wallpaper-library-top {
    align-items: stretch;
    flex-direction: column;
  }

  .wallpaper-option {
    min-height: 86px;
  }

  .wallpaper-preview {
    width: min(100%, 300px);
  }

  .sticker-category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .background-swatches {
    gap: 7px;
  }

  .background-swatches button {
    width: 38px;
    height: 38px;
  }

  .start-choice-modal {
    padding: 14px;
  }

  .start-choice-card {
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 24px;
    border-radius: 26px;
  }

  .start-choice-actions {
    grid-template-columns: 1fr;
  }

  .box-order-modal {
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .box-order-card {
    max-height: calc(var(--box-order-viewport-height, 100dvh) - 28px);
    padding: 24px;
    border-radius: 26px;
  }

  .box-order-progress {
    grid-template-columns: 1fr;
    margin: 18px 0;
  }

  .box-order-progress span {
    min-height: 38px;
  }

  .box-order-grid,
  .box-order-choice,
  .box-order-actions {
    grid-template-columns: 1fr;
  }

  .early-access-summary div,
  .early-access-copy-grid {
    grid-template-columns: 1fr;
  }

  .early-access-summary div {
    gap: 5px;
  }

  .early-access-panel h3 {
    margin-right: 36px;
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .early-access-payment-box code {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .box-order-actions .button:last-child {
    justify-self: stretch;
  }

  textarea {
    min-height: 64px;
    border-radius: 17px;
  }

  :where(input, select, textarea) {
    font-size: 16px !important;
  }

  body.is-keyboard-input-active .constructor-actions {
    position: static;
    margin-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .constructor-actions {
    grid-template-columns: 1fr 1fr;
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 24px;
    margin-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .constructor-actions .button {
    min-width: 0;
    min-height: 54px;
    padding: 0 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.constructor-step[data-step="5"] .zones-grid:not(.zones-grid--detail) {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  gap: clamp(16px, 2vw, 24px);
}

.constructor-step[data-step="5"] .zone-folder-intro {
  width: 100%;
  max-width: none;
}

.constructor-step[data-step="5"] .zone-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  width: 100%;
  max-width: none;
}

.constructor-step[data-step="5"] .zone-folder {
  min-width: 0;
}

.constructor-step[data-step="5"] .zone-folder strong,
.constructor-step[data-step="5"] .zone-folder small {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 900px) {
  .constructor-step[data-step="5"] .zone-folder-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 520px) {
  .constructor-step[data-step="5"] .zone-folder-grid {
    grid-template-columns: 1fr;
  }

  .zone-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 679px) {
  .constructor-panel,
  .constructor-panel * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .constructor-panel {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .constructor__top {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .constructor-progress {
    justify-content: start;
  }

  .constructor-panel .constructor__top h2 {
    max-width: min(100%, calc(100vw - 72px));
    font-size: clamp(1.42rem, 6.8vw, 1.9rem);
    line-height: 1.04;
  }

  .constructor-panel .constructor-copy p,
  .constructor-step[data-step="5"] .zone-folder-intro p {
    max-width: min(100%, calc(100vw - 76px));
    font-size: clamp(0.82rem, 3.8vw, 0.95rem);
    line-height: 1.5;
  }

  .constructor-panel .constructor__top h2,
  .constructor-panel .constructor-copy h3,
  .constructor-panel .constructor-copy p,
  .constructor-step[data-step="5"] .zone-folder-intro h3,
  .constructor-step[data-step="5"] .zone-folder-intro p,
  .constructor-step[data-step="5"] .zone-folder strong,
  .constructor-step[data-step="5"] .zone-folder small {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .constructor-step[data-step="5"] .zone-folder {
    min-height: auto;
    align-content: start;
    padding-right: 58px;
  }

  .constructor-step[data-step="5"] .zone-folder strong {
    padding-right: 0;
  }
}

.phone-builder .wallpaper-image-grid,
.zone-detail-side .zone-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
  grid-auto-rows: auto !important;
  gap: 14px !important;
}

.phone-builder .wallpaper-image-grid .library-image-card,
.zone-detail-side .zone-library-grid .library-image-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  padding: 10px;
  border-radius: 22px;
  contain: layout;
  isolation: isolate;
}

.phone-builder .wallpaper-image-grid .wallpaper-image-preview,
.zone-detail-side .zone-library-grid .wallpaper-image-preview {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
  place-items: initial !important;
  padding: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
}

.phone-builder .wallpaper-image-grid .wallpaper-image-preview img,
.zone-detail-side .zone-library-grid .wallpaper-image-preview img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.phone-builder .wallpaper-image-grid .library-image-card__meta,
.zone-detail-side .zone-library-grid .library-image-card__meta {
  position: static !important;
  display: flex !important;
  min-height: 34px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .phone-builder .wallpaper-image-grid,
  .zone-detail-side .zone-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .mockup-gallery,
  .email-template-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .mockup-card {
    min-height: 390px;
  }

  .mockup-collage {
    height: 230px;
  }

  .mockup-a3 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .benefits,
  .faq {
    width: min(100% - 20px, var(--max));
    padding: 28px 16px 34px;
    border-radius: 28px;
  }

  .faq .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }

  .faq .section-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .faq h2 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.08;
  }

  .mockup-card,
  .brand-email-card,
  .future-letter-card {
    border-radius: 20px;
    padding: 17px;
  }

  .faq-grid {
    gap: 10px;
  }

  .faq details {
    border-radius: 22px;
    padding: 0;
  }

  .faq summary {
    grid-template-columns: minmax(0, 1fr) 30px;
    min-height: 54px;
    font-size: clamp(0.96rem, 4.2vw, 1.08rem);
    line-height: 1.28;
  }

  .faq summary::after {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .faq p {
    margin: 0 16px;
    padding: 0 0 12px;
    font-size: 0.86rem;
    line-height: 1.58;
  }

  .mockup-card {
    min-height: 360px;
  }

  .mockup-collage {
    inset: 18px 14px auto;
    height: 226px;
    border-radius: 20px;
  }

  .mockup-collage span {
    left: 20px;
    bottom: 76px;
    font-size: 1rem;
  }

  .mockup-collage b {
    right: 18px;
    font-size: 1.8rem;
  }

  .mockup-gift-pass {
    inset: 22px 20px auto;
  }

  .mockup-a3 {
    inset: 24px 12px auto;
    gap: 4px;
    padding: 7px;
    border-width: 7px;
  }

  .gift-flow-list span {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .phone-builder .wallpaper-image-grid,
  .zone-detail-side .zone-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
    gap: 10px !important;
    max-height: 430px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .phone-builder .wallpaper-image-grid .library-image-card,
  .zone-detail-side .zone-library-grid .library-image-card {
    display: grid !important;
    grid-template-rows: auto 26px !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0 !important;
    padding: 6px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    contain: layout !important;
    isolation: isolate !important;
  }

  .phone-builder .wallpaper-image-grid .wallpaper-image-preview,
  .zone-detail-side .zone-library-grid .wallpaper-image-preview {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
  }

  .phone-builder .wallpaper-image-grid .wallpaper-image-preview img,
  .zone-detail-side .zone-library-grid .wallpaper-image-preview img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .phone-builder .wallpaper-image-grid .library-image-card__meta,
  .zone-detail-side .zone-library-grid .library-image-card__meta {
    display: none !important;
  }

  .phone-builder .wallpaper-image-grid .library-image-card::after,
  .zone-detail-side .zone-library-grid .library-image-card::after {
    content: "НАТИСНИ";
    display: grid;
    width: 100%;
    min-height: 26px;
    height: 26px;
    place-items: center;
    color: var(--accent-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.08em;
  }

  .photo-transform-handle--right {
    right: -12px;
    width: 24px;
    height: 42px;
  }

  .photo-transform-handle--bottom {
    bottom: -12px;
    width: 42px;
    height: 24px;
  }

  .photo-transform-handle--corner {
    right: -14px;
    bottom: -14px;
    width: 30px;
    height: 30px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.result-showcase {
  display: none !important;
}

.phone-builder .wallpaper-image-grid .library-image-card__meta,
.zone-detail-side .zone-library-grid .library-image-card__meta {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.phone-builder .wallpaper-image-grid .library-image-card__meta button,
.zone-detail-side .zone-library-grid .library-image-card__meta button {
  min-height: 30px;
  padding: 7px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1;
}

.zone-detail-side .zone-library-grid .library-image-card__meta {
  grid-template-columns: 1fr;
}

.phone-builder .wallpaper-image-grid .library-image-card::after,
.zone-detail-side .zone-library-grid .library-image-card::after {
  display: none !important;
  content: none !important;
}

.product-format,
.benefits,
.faq {
  width: var(--framed-section-width);
  max-width: var(--max);
}

@media (max-width: 679px) {
  .product-format,
  .benefits,
  .faq {
    width: min(100% - 20px, var(--max));
    padding: 42px 0;
  }

  .product-format__heading h2,
  .benefits .section-heading h2,
  .faq h2 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.08;
  }
}

@media (max-width: 1024px) {
  .constructor-panel {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin-inline: 14px !important;
    padding: 14px !important;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .constructor-panel .constructor__top h2,
  .constructor-step[data-step="5"] .constructor-copy h3,
  .constructor-step[data-step="5"] .constructor-copy p {
    width: 100% !important;
    max-width: min(100%, 315px) !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .constructor-panel .constructor__top h2 {
    font-size: clamp(1.36rem, 6.5vw, 1.72rem) !important;
    line-height: 1.06 !important;
  }

  .constructor-step[data-step="5"] .constructor-copy h3 {
    font-size: clamp(1.34rem, 6vw, 1.8rem) !important;
    line-height: 1.08 !important;
  }

  .constructor-step[data-step="5"] .constructor-copy p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  .zone-card--detail,
  .zone-detail-hero,
  .zone-detail-layout,
  .zone-detail-main,
  .zone-detail-side,
  .upload-area,
  .selected-images,
  .zone-text-field {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .zone-detail-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zone-detail-hero h3,
  .zone-detail-hero p:not(.section-label),
  .upload-area label,
  .image-count,
  .selected-images--detail > small,
  .zone-text-field textarea {
    max-width: min(100%, 315px) !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .upload-area {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 679px) {
  :root {
    --header-height: 56px;
    --header-offset: calc(var(--header-height) + 16px);
  }

  html {
    scroll-padding-top: var(--header-offset);
  }

  body {
    padding-top: var(--header-offset) !important;
  }

  .site-header {
    display: flex !important;
    width: calc(100% - 20px);
    min-height: var(--header-height);
    padding: 6px 10px 6px 14px;
    border-radius: 20px;
  }

  .site-header .logo span {
    font-size: 0.78rem;
  }

  .site-header .logo small {
    font-size: 0.48rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    gap: 14px;
    padding: 18px 0 28px !important;
  }

  .hero__content {
    gap: 10px;
  }

  .hero h1 {
    gap: 7px;
  }

  .hero h1 span {
    font-size: clamp(2.4rem, 14vw, 3.45rem);
    line-height: 0.94;
  }

  .hero h1 small {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .hero__text {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
    max-height: 230px;
    border-radius: 20px;
  }

  .product-overview {
    gap: 18px;
    padding: 34px 0 42px;
  }

  .product-overview h2 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .product-overview__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-overview__grid article {
    min-height: 0;
    padding: 14px;
  }

  .format-grid {
    gap: 18px;
  }

  .format-card,
  .format-card--box {
    grid-template-rows: 210px auto;
  }

  .format-card__body {
    gap: 10px;
    padding: 18px;
  }

  .gift-card {
    gap: 18px;
    padding: 18px;
  }

  .gift-flow-list {
    gap: 6px;
  }

  .gift-flow-list span {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.61rem;
  }

  .gift-mockup {
    min-height: 280px;
  }

  .gift-mockup__card--vision {
    width: min(100%, 220px);
    height: 280px;
    transform: rotate(-2deg);
  }

  .gift-form .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    padding: 14px;
    border-radius: 20px;
  }

  .format-card__list li,
  .format-card--box .format-card__list li {
    padding-left: 0 !important;
  }

  .format-card__list li::before,
  .format-card--box .format-card__list li::before {
    content: none !important;
  }

  .upload-area label {
    min-height: 68px !important;
    border-radius: 22px !important;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, var(--accent-dark))) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 18px 42px rgba(181, 48, 111, 0.24) !important;
    font-size: 0.74rem !important;
    white-space: normal !important;
  }
}

@media (max-width: 390px) {
  .format-card,
  .format-card--box {
    min-height: 527px;
  }
}

/* Final mobile-library guard: keep later editor styles from reintroducing stacked cards. */
@media (max-width: 760px) {
  .library-browser__grid,
  .phone-builder .wallpaper-image-grid,
  .zone-detail-side .zone-library-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding: 0 !important;
  }

  .zone-detail-side {
    max-height: none !important;
    overflow: visible !important;
  }

  .library-browser__grid .library-image-card,
  .phone-builder .wallpaper-image-grid .library-image-card,
  .zone-detail-side .zone-library-grid .library-image-card {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    contain: none !important;
    transform: none !important;
  }

  .library-browser__grid .library-image-card__preview,
  .phone-builder .wallpaper-image-grid .library-image-card__preview,
  .zone-detail-side .zone-library-grid .library-image-card__preview {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .library-browser__grid .library-image-card__preview img,
  .phone-builder .wallpaper-image-grid .library-image-card__preview img,
  .zone-detail-side .zone-library-grid .library-image-card__preview img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.library-image-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 20, 32, 0.24);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  pointer-events: none;
}

.mobile-photo-preview-action {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(45, 20, 32, 0.12);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(45, 20, 32, 0.18);
  font-size: 1rem;
  font-weight: 950;
}

.mobile-library-selection-bar {
  position: sticky;
  z-index: 80;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-color-text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-md);
  backdrop-filter: blur(18px);
}

.mobile-library-selection-bar button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-accent-contrast);
  background: var(--ds-color-accent);
  font: inherit;
  font-size: 0.7rem;
  font-weight: var(--ds-font-weight-bold);
}

@media (max-width: 760px) {
  .constructor-step.has-mobile-library-selection,
  .constructor-step:has(.mobile-library-selection-bar) {
    transform: none !important;
  }

  .constructor-panel:has(.has-mobile-library-selection),
  .has-mobile-library-selection .phone-builder-card,
  .has-mobile-library-selection .sw-editor__panel,
  .constructor-panel:has(.mobile-library-selection-bar),
  .constructor-panel:has(.mobile-library-selection-bar) .zone-detail-side {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .wallpaper-library:has(.mobile-library-selection-bar),
  .zone-detail-side:has(.mobile-library-selection-bar) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-library-selection-bar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
  }
}

/* Final landing hero composition overrides legacy responsive rules. */
.hero {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(58px, 7vw, 92px) clamp(28px, 7vw, 92px);
}

.hero__content {
  z-index: 4;
  max-width: 690px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 450px;
    padding: 34px 18px 38px !important;
  }

  .hero__content {
    max-width: 100%;
  }
}

/* Final ISSUE 05C landing overrides: kept last to supersede legacy mobile rules. */
:where(#how, #pricing, #library, #gift, #faq) {
  scroll-margin-top: calc(var(--header-offset) + 18px);
}

@media (max-width: 679px) {
  :root {
    --header-height: 52px;
    --header-offset: calc(var(--header-height) + max(14px, env(safe-area-inset-top)));
  }

  .site-header {
    top: max(4px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    min-height: var(--header-height);
    margin-top: 0;
    padding: 4px 7px 4px 12px;
    border-radius: 18px;
  }

  .site-header .logo span { font-size: 0.74rem; }
  .site-header .logo small { font-size: 0.44rem; }

  .mobile-nav summary {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.68rem;
  }

  :where(#how, #pricing, #library, #gift, #faq) {
    scroll-margin-top: calc(var(--header-offset) + 14px);
  }

  .gift-card { gap: 14px; }
  .gift-mockup { min-height: 210px; }

  .gift-mockup__card--vision {
    width: min(100%, 330px);
    height: 210px;
    grid-template-columns: minmax(0, 1fr) 126px;
    grid-template-rows: auto 1fr auto;
    gap: 6px 12px;
    align-items: center;
    padding: 16px;
    transform: rotate(-1deg);
  }

  .gift-mockup__card--vision > span { grid-column: 1; grid-row: 1; }

  .gift-mockup__card--vision > strong {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    max-width: 6ch;
    font-size: 1.65rem;
    line-height: 0.92;
  }

  .gift-mockup__card--vision > small {
    grid-column: 1;
    grid-row: 3;
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .gift-mockup__card--vision .gift-vision-grid {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 126px;
    justify-self: end;
  }
}

/* Progressive disclosure landing components. */
.hero__actions {
  display: flex;
  align-items: center;
}

.hero__actions .button {
  width: max-content;
  min-width: 190px;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid rgba(181, 48, 111, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.68);
  backdrop-filter: blur(14px);
}

.hero-steps article {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-steps span {
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-steps strong {
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.2;
}

.hero-steps small {
  color: var(--ds-color-text-muted);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.35;
}

.format-grid {
  align-items: start;
}

.format-card,
.format-card--box {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-family: var(--ds-font-family);
}

.format-card__summary {
  display: grid;
  min-height: 304px;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.format-card__summary h3 {
  margin: 0;
}

.format-card__summary h3 button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: left;
}

.format-card__summary h3 button:focus-visible,
.format-card__more:focus-visible,
.format-card__collapse:focus-visible,
.product-library-reveal__trigger:focus-visible {
  outline: 0;
  box-shadow: var(--ds-focus-ring);
}

.format-card__chevron,
.product-library-reveal__chevron {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform 280ms ease-out;
}

.format-card__chevron::before,
.format-card__chevron::after,
.product-library-reveal__chevron::before,
.product-library-reveal__chevron::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.format-card__chevron::before,
.product-library-reveal__chevron::before {
  left: 1px;
  transform: rotate(42deg);
}

.format-card__chevron::after,
.product-library-reveal__chevron::after {
  right: 1px;
  transform: rotate(-42deg);
}

.format-card.is-expanded .format-card__chevron {
  transform: rotate(180deg);
}

.format-card__category {
  position: static;
  z-index: 3;
  max-width: 100%;
  width: max-content;
  min-height: 30px;
  justify-self: end;
  align-self: start;
  padding-inline: 12px;
  color: var(--gold);
  border-color: rgba(184, 141, 85, 0.5);
  background: var(--accent-dark);
  box-shadow: none;
  font-size: 0.62rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.format-card--featured .format-card__category {
  color: #fff8eb;
  border-color: rgba(184, 141, 85, 0.72);
  background: var(--accent-dark);
}

.format-card__tagline {
  min-width: 0;
  min-height: 2.7em;
  margin: 0;
  overflow: visible;
  color: var(--ds-color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.format-card__more,
.format-card__collapse,
.product-library-reveal__trigger {
  min-height: 44px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  cursor: pointer;
  color: var(--accent-dark);
  background: rgba(255, 253, 250, 0.86);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
}

.format-card__more {
  width: 100%;
  margin-top: auto;
}

.format-card.is-expanded .format-card__more {
  visibility: hidden;
  pointer-events: none;
}

.format-card__details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 280ms ease-out,
    opacity 220ms ease-out;
}

.format-card.is-expanded .format-card__details {
  opacity: 1;
}

.format-card__details-inner {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.format-card__details .format-card__preview {
  min-height: 0;
  height: 190px;
  border-radius: 18px;
}

.format-card__details .format-card__description {
  margin: 0;
  color: var(--ds-color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.format-card__details .format-card__list {
  gap: 8px;
}

.format-card__details .format-card__list li {
  position: relative;
  padding-left: 16px !important;
}

.format-card__details .format-card__list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.format-card__details .button {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.format-card__collapse {
  width: max-content;
  min-width: 112px;
  justify-self: center;
  border-color: transparent;
  background: transparent;
}

.product-library-reveal {
  display: flex;
  min-height: 44px;
  justify-content: center;
  margin-top: 22px;
}

.product-library-reveal__trigger {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.product-library-reveal__trigger[hidden] {
  display: none;
}

.product-library-reveal__trigger:hover {
  color: var(--accent);
  background: rgba(255, 253, 250, 0.72);
}

.public-library-preview__grid {
  max-height: min(58dvh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-auto-rows: max-content;
  align-content: start;
  padding-right: 4px;
}

.public-library-preview__panel:focus {
  outline: none;
}

@media (min-width: 768px) {
  .format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .format-card__summary {
    min-height: 316px;
  }

  .format-card__summary,
  .format-card__price,
  .format-card__price strong,
  .format-card__tagline {
    min-width: 0;
    max-width: 100%;
  }

  .format-card__price strong {
    display: block;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 590px;
    padding-bottom: 28px !important;
  }

  .hero__actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 16px;
  }

  .hero-steps article {
    gap: 2px;
    padding: 8px 6px;
    border-radius: 12px;
  }

  .hero-steps strong {
    font-size: 0.62rem;
  }

  .hero-steps small {
    font-size: 0.5rem;
    line-height: 1.28;
  }

  .format-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .format-card,
  .format-card--box {
    grid-column: auto;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    border-radius: 22px;
  }

  .format-card__summary {
    min-height: 280px;
    gap: 10px;
    padding: 18px;
  }

  .format-card__summary h3 button {
    font-size: 1.28rem;
  }

  .format-card__price strong {
    font-size: 1.9rem;
  }

  .format-card__details-inner {
    padding: 0 18px 18px;
  }

  .format-card__details .format-card__preview {
    height: 180px;
    min-height: 180px;
  }

  .public-library-preview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 62dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .format-card__details,
  .format-card__chevron,
  .product-library-reveal__chevron {
    transition-duration: 0ms;
  }
}
