@font-face {
  font-family: "X5 Sans";
  src: url("./assets/fonts/X5Sans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "X5 Sans";
  src: url("./assets/fonts/X5-Sans_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "X5 Sans";
  src: url("./assets/fonts/X5-Sans_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "X5 Sans UI Card";
  src: url("./assets/fonts/X5-Sans-UI_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Card";
  src: url("./assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --panel: #000000;
  --text: #ffffff;
  --ink: #000000;
  --muted: rgba(255, 255, 255, 0.9);
  --soft: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #12ff00;
  --header-pill: #e7e7e7;
  --footer-pill: rgba(255, 255, 255, 0.1);
  --radius: 15px;
  --screen-canvas-scale: 1;
  --screen-canvas-base-width: 1512;
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(18, 255, 0, 0.08), transparent 26%),
    #ffffff;
  color: var(--ink);
  font-family: "X5 Sans", sans-serif;
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.page-shell {
  width: 100vw;
  height: 100vh;
  padding: 24px 0 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  display: block;
  width: 206px;
  height: 55px;
  flex: 0 0 auto;
  object-fit: contain;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 338px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 124px;
  background: var(--header-pill);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.stage {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--panel);
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen--hero,
.screen--step,
.screen--loading,
.screen--design,
.screen--ready,
.screen--promo {
  overflow-y: auto;
  overflow-x: hidden;
}

.screen--hero::-webkit-scrollbar,
.screen--step::-webkit-scrollbar,
.screen--loading::-webkit-scrollbar,
.screen--design::-webkit-scrollbar,
.screen--ready::-webkit-scrollbar,
.screen--promo::-webkit-scrollbar {
  width: 6px;
}

.screen--hero::-webkit-scrollbar-thumb,
.screen--step::-webkit-scrollbar-thumb,
.screen--loading::-webkit-scrollbar-thumb,
.screen--design::-webkit-scrollbar-thumb,
.screen--ready::-webkit-scrollbar-thumb,
.screen--promo::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 100px;
}

.screen[hidden] {
  display: none;
}

.screen__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.screen--design .screen__bg {
  inset: 0 0 -320px;
}

.screen--ready .screen__bg {
  inset: 0 0 -140px;
}

.screen__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1512px;
  height: 876px;
  transform: translateX(-50%) scale(var(--screen-canvas-scale));
  transform-origin: top center;
}

.screen__blur {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 50%;
  background: #000000;
  filter: blur(100px);
  pointer-events: none;
}

.screen__blur--top {
  top: 70px;
  width: 938px;
  height: 268px;
  opacity: 0.7;
}

.screen__blur--bottom {
  top: 614px;
  width: 856px;
  height: 194px;
}

.screen--hero .screen__blur--bottom {
  display: none;
}

.screen--hero .screen__blur--top {
  display: none;
}

.screen--promo .screen__blur--bottom,
.screen--promo .screen__blur--top {
  display: none;
}

.screen__blur--dim {
  opacity: 0.46;
}

.art {
  position: absolute;
  display: block;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.art--hero-package {
  top: 64px;
  left: -658px;
  width: 1650px;
  height: 920px;
  transform: rotate(32.1deg);
  opacity: 1;
  mix-blend-mode: lighten;
}

.art--hero-basket {
  right: -360px;
  bottom: -64px;
  width: 1040px;
  transform: rotate(-6deg);
}

.art--step-package {
  top: -210px;
  right: -690px;
  width: 1860px;
  transform: rotate(33deg);
  opacity: 0.62;
  mix-blend-mode: lighten;
}

[data-screen="step-1"] .art--step-package,
[data-screen="step-2"] .art--step-package,
[data-screen="step-3"] .art--step-package,
[data-screen="ready"] .art--step-package {
  top: 44px;
  right: -780px;
}

[data-screen="step-1"] .art--step-basket,
[data-screen="step-2"] .art--step-basket,
[data-screen="step-3"] .art--step-basket,
[data-screen="ready"] .art--step-basket {
  left: -396px;
  bottom: -78px;
  width: 1080px;
}

.art--step-basket {
  left: -485px;
  bottom: -124px;
  width: 930px;
  opacity: 0.7;
  transform: rotate(34deg);
}

.art--promo-basket {
  left: -468px;
  bottom: -86px;
  width: 860px;
  opacity: 0.82;
  transform: rotate(14deg);
}

[data-screen="promo"] .art--step-package {
  top: 64px;
  right: auto;
  left: -658px;
  width: 1650px;
  height: 920px;
  transform: rotate(32.1deg);
  opacity: 1;
}

[data-screen="promo"] .art--promo-basket {
  left: auto;
  right: -360px;
  bottom: -64px;
  width: 1040px;
  opacity: 1;
  transform: rotate(-6deg);
}

.hero {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 80px));
  margin: 82px auto 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 118px;
  left: 50%;
  width: 938px;
  height: 306px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 3.62vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title em {
  color: var(--accent);
  font-style: normal;
}

.hero__lead {
  width: min(620px, calc(100% - 120px));
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(20px, 1.66vw, 24px);
  line-height: 1;
}

.hero__lead strong {
  color: var(--accent);
  font-weight: 500;
}

.hero__footer {
  position: absolute;
  left: 50%;
  bottom: 98px;
  z-index: 2;
  display: grid;
  gap: 24px;
  justify-items: center;
  width: min(640px, calc(100% - 80px));
  transform: translateX(-50%);
}

.hero__footer::before {
  content: "";
  position: absolute;
  top: -30px;
  left: calc(50% + 4px);
  width: 856px;
  height: 208px;
  background: rgba(0, 0, 0, 0.92);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero__caption {
  width: min(504px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 124px;
  font-size: 18px;
  line-height: 1;
}

.pill-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.pill-button__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.pill-button--primary {
  width: min(640px, 100%);
  background: #ffffff;
  color: #000000;
}

.pill-button--accent {
  width: min(640px, 100%);
  background: var(--accent);
  color: #000000;
}

.back-link {
  position: absolute;
  top: 36px;
  left: 76px;
  z-index: 2;
  padding: 12px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
}

.back-link--wide {
  left: 76px;
}

.step,
.design-step,
.ready-step,
.promo {
  position: relative;
  z-index: 1;
  padding-bottom: 54px;
}

.step {
  display: grid;
  justify-items: center;
  width: min(640px, calc(100% - 80px));
  margin: 34px auto 0;
}

.step--name {
  margin-top: 44px;
}

.step--message {
  margin-top: 34px;
}

.step__label {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.step__title {
  margin: 28px 0 0;
  color: #ffffff;
  font-size: clamp(44px, 3.62vw, 52px);
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
}

.step__title span,
.step__title em {
  display: block;
}

.step__title em {
  color: var(--accent);
  font-style: normal;
}

.step__title--design {
  margin-top: 28px;
}

.step__lead {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.step__lead--message {
  margin-top: 30px;
}

.form-card {
  display: grid;
  gap: 28px;
  width: 512px;
  margin-top: 36px;
  padding: 29px 14px;
  border-radius: 14px;
  background: #ffffff;
}

.field {
  display: grid;
  gap: 14px;
}

.field__label {
  color: #000000;
  font-size: 19px;
  line-height: 1;
}

.field__required {
  color: var(--accent);
}

.field__input {
  width: 100%;
  height: 60px;
  padding: 0 28px;
  border: 1px solid #818181;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
  font-size: 19px;
}

.field__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.field__input.is-invalid {
  border-color: #ff4f4f;
  box-shadow: 0 0 0 1px rgba(255, 79, 79, 0.2);
}

.validation-error {
  margin: -4px 0 0;
  color: #d93636;
  font-size: 14px;
  line-height: 1;
}

.validation-error--light {
  width: 640px;
  margin: 14px 0 0;
  color: #ff8c8c;
  text-align: left;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.privacy-note__icon {
  display: block;
  width: 20px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
  object-fit: contain;
}

.privacy-note p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1;
}

.switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 385px;
  margin-top: 28px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(27px);
}

.switcher__button {
  min-height: 44px;
  border-radius: 7px;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.switcher__button.is-active {
  background: #ffffff;
  color: #000000;
}

.message-card,
.template-card {
  width: 640px;
  margin-top: 34px;
}

.message-card {
  position: relative;
  min-height: 220px;
  padding: 20px 20px 32px;
  border-radius: 16px;
  background: #ffffff;
}

.message-card.is-invalid {
  box-shadow: 0 0 0 1px rgba(255, 79, 79, 0.45);
}

.message-card__input {
  width: 100%;
  min-height: 168px;
  resize: none;
  border: 0;
  outline: none;
  color: #000000;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.message-card__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.message-card__counter {
  position: absolute;
  right: 28px;
  bottom: 20px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1;
}

[data-screen="step-2"] .message-card {
  width: 640px;
  min-height: 156px;
  padding: 18px 18px 28px;
}

[data-screen="step-2"] .message-card__input {
  min-height: 104px;
}

[data-screen="step-2"] .message-card__counter {
  right: 20px;
  bottom: 16px;
}

[data-screen="step-2"] .template-card {
  width: 640px;
  max-height: 156px;
  padding: 8px;
}

[data-screen="step-2"] .template-card__list {
  gap: 8px;
  max-height: 140px;
  padding-right: 6px;
}

[data-screen="step-2"] .template-card__item {
  min-height: 38px;
  padding: 12px 18px;
}

.template-card {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(27px);
}

.template-card__list {
  display: grid;
  gap: 12px;
  max-height: 196px;
  overflow-y: auto;
  padding-right: 8px;
}

.template-card__list::-webkit-scrollbar {
  width: 4px;
}

.template-card__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}

.template-card__list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 100px;
}

.template-card__item {
  min-height: 54px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  line-height: 1;
  text-align: left;
  border: 2px solid transparent;
}

.template-card__item.is-selected {
  border-color: var(--accent);
}

.screen--step .pill-button {
  margin-top: 32px;
}

.bottom-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(640px, 100%);
  min-height: 43px;
  margin-top: 34px;
  border-radius: 100px;
  background: var(--footer-pill);
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.bottom-note__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.design-step {
  display: grid;
  justify-items: center;
  width: min(660px, calc(100% - 80px));
  margin: 34px auto 0;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  width: 640px;
  margin-top: 34px;
}

.design-option {
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  overflow: hidden;
}

.design-option.is-selected {
  border-color: rgba(18, 255, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(18, 255, 0, 0.25);
}

.design-option__preview {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #050505;
}

.design-option__preview::before,
.design-option__preview::after {
  display: none;
}

.design-option__preview--1 {
  background-image: url("./assets/images/examples/1.png?v=20260414");
}

.design-option__preview--2 {
  background-image: url("./assets/images/examples/2.png?v=20260414");
}

.design-option__preview--3 {
  background-image: url("./assets/images/examples/3.png?v=20260414");
}

.design-option__preview--4 {
  background-image: url("./assets/images/examples/4.png?v=20260414");
}

.design-option__preview--5 {
  background-image: url("./assets/images/examples/5.png?v=20260414");
}

.design-option__preview--6 {
  background-image: url("./assets/images/examples/6.png?v=20260414");
}

.design-option__label {
  display: block;
  padding: 8px 10px 10px;
  background: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  text-align: left;
}

.preview-block {
  display: grid;
  justify-items: center;
  gap: 34px;
  margin-top: 34px;
}

.preview-block__title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.card-preview {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #050505;
  color: #ffffff;
  --name-bg: #12ff00;
  --name-color: #000000;
  --card-text-color: #ffffff;
  --card-footer-bg: rgba(255, 255, 255, 0.12);
  --card-footer-text: rgba(255, 255, 255, 0.52);
}

.card-preview::before,
.card-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card-preview__frame {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
  pointer-events: none;
}

.card-preview__frame-artboard {
  --frame-copy-offset-y: 2.4615%;
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% * 361 / 325);
  height: 100%;
  transform: translateX(-50%);
  container-type: inline-size;
}

.card-preview__frame-artboard--square {
  width: 100%;
  height: 100%;
}

.card-preview__frame-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5.5402cqw;
}

.card-preview__frame-name {
  position: absolute;
  left: 50%;
  top: 22.3333%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 43%;
  max-width: 78%;
  min-height: 12.1267%;
  padding: 0 9.25cqw;
  box-sizing: border-box;
  overflow: hidden;
  color: #000000;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-weight: 500;
  font-size: 5.3333cqw;
  line-height: 152%;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #1bdb0c;
  border-radius: 13.7178cqw;
}

.card-preview__sticker-name,
.card-preview__sticker-message {
  position: absolute;
  margin: 0;
  color: #2e2b27;
  font-family: "JetBrains Mono Card", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card-preview__sticker-name {
  top: 13.8817%;
  left: calc(50% + 5.1433cqw);
  width: auto;
  min-width: 18%;
  transform: translateX(-50%) rotate(5.24deg);
  font-size: 6cqw;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-preview__sticker-name.is-compact {
  font-size: 5.35cqw;
}

.card-preview__sticker-message {
  top: 23.0083%;
  left: 50.6267%;
  width: 60.61%;
  min-height: 28%;
  transform: translateX(-50%) rotate(5.24deg);
  font-size: 3.5cqw;
  white-space: pre-line;
  text-transform: uppercase;
}

.card-preview__frame-headline,
.card-preview__frame-accent {
  position: absolute;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-weight: 500;
  font-size: 5.4215cqw;
  line-height: 152%;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-preview__frame-headline {
  left: 50%;
  top: calc(34.2708% + var(--frame-copy-offset-y));
  width: 52.0776%;
  height: 9.2308%;
  transform: translateX(-50%);
  color: #ffffff;
}

.card-preview__frame-pill {
  position: absolute;
  left: 50%;
  top: calc(42.8738% + var(--frame-copy-offset-y));
  width: 39.6482%;
  height: 8.1938%;
  transform: translateX(-50%);
  background: #1bdb0c;
  border-radius: 8.4366cqw;
}

.card-preview__frame-accent {
  left: 50%;
  top: calc(42.4646% + var(--frame-copy-offset-y));
  width: 33.518%;
  height: 9.2308%;
  transform: translateX(-50%);
  color: #000000;
}

.card-preview__frame-message {
  position: absolute;
  left: 50%;
  top: 41%;
  width: 81.3333%;
  margin: 0;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  font-style: normal;
  font-size: 4.7619cqw;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  white-space: pre-line;
}

.card-preview__receipt-name,
.card-preview__receipt-message {
  position: absolute;
  margin: 0;
  color: #2e2b27;
  font-family: "JetBrains Mono Card", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card-preview__receipt-name {
  top: 16.6417%;
  left: calc(50% - 0.95cqw);
  width: auto;
  min-width: 18%;
  min-height: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 6cqw;
  white-space: nowrap;
}

.card-preview__receipt-name.is-compact {
  font-size: 5.35cqw;
}

.card-preview__receipt-message {
  top: 30.6667%;
  left: calc(50% - 0.95cqw);
  width: 53.1667%;
  height: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 3.5cqw;
}

.card-preview__badge-content {
  position: absolute;
  inset: 0;
}

.card-preview__badge-name,
.card-preview__badge-message {
  position: absolute;
  margin: 0;
  color: #000000;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card-preview__badge-name {
  top: 54.0383%;
  left: 50%;
  width: auto;
  min-width: 12.6667%;
  min-height: 4%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 4cqw;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-preview__badge-message {
  top: 60.8333%;
  left: 50%;
  width: 48.1667%;
  min-height: 18.6667%;
  transform: translateX(-50%);
  font-size: 2.6667cqw;
  white-space: pre-line;
}

.card-preview__envelope-name,
.card-preview__envelope-message {
  position: absolute;
  margin: 0;
  color: #000000;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-align: center;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card-preview__envelope-name {
  left: 50%;
  top: 32.5%;
  width: auto;
  min-width: 24%;
  max-width: 72%;
  min-height: 6.84%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5.75cqw;
  box-sizing: border-box;
  overflow: hidden;
  transform: translateX(-50%);
  background: #1bdb0c;
  border-radius: 7.7371cqw;
  font-weight: 500;
  font-size: 3.5cqw;
  line-height: 152%;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-preview__envelope-message {
  top: 43.1667%;
  left: 50%;
  width: 59.1667%;
  transform: translateX(-50%);
  font-weight: 400;
  font-size: 2.6667cqw;
  line-height: 100%;
  white-space: pre-line;
}

.card-preview__paper-name,
.card-preview__paper-message {
  position: absolute;
  margin: 0;
  color: #000000;
  font-family: "X5 Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card-preview__paper-name {
  top: 14.5%;
  left: 49.9167%;
  width: auto;
  min-width: 18.8333%;
  min-height: 6%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 6cqw;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-preview__paper-message {
  top: 23.3333%;
  left: 50%;
  width: 86.3333%;
  min-height: 12%;
  transform: translateX(-50%);
  font-size: 3cqw;
  white-space: pre-line;
}

.card-preview__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 22px 18px;
  text-align: center;
}

.card-preview__brand {
  align-self: flex-start;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.card-preview__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 100%;
  min-height: 52px;
  margin-top: 48px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--name-bg);
  color: var(--name-color);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.card-preview__message {
  margin: 34px 0 0;
  max-width: 76%;
  color: var(--card-text-color);
  font-size: 17px;
  line-height: 1.06;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.card-preview__footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--card-footer-bg);
  color: var(--card-footer-text);
  font-size: 14px;
  line-height: 1;
}

.card-preview--large {
  width: 392px;
  aspect-ratio: 1 / 1;
}

.card-preview--result {
  width: 302px;
  aspect-ratio: 1 / 1;
}

.card-preview--result .card-preview__content {
  padding: 18px 18px 16px;
}

.card-preview--result .card-preview__brand {
  font-size: 14px;
}

.card-preview--result .card-preview__name {
  min-height: 52px;
  min-width: 164px;
  margin-top: 54px;
  padding: 0 30px;
  font-size: 24px;
}

.card-preview--result .card-preview__message {
  margin-top: 28px;
  max-width: 82%;
  font-size: 15px;
  -webkit-line-clamp: 5;
}

.card-preview--result .card-preview__footer {
  min-height: 42px;
  font-size: 14px;
}

.card-preview--large .card-preview__content {
  padding: 18px 18px 16px;
}

.card-preview--large .card-preview__brand {
  font-size: 14px;
}

.card-preview--large .card-preview__name {
  min-height: 40px;
  min-width: 144px;
  margin-top: 44px;
  padding: 0 24px;
  font-size: 20px;
}

.card-preview--large .card-preview__message {
  margin-top: 26px;
  max-width: 82%;
  font-size: 14px;
  -webkit-line-clamp: 4;
}

.card-preview--large .card-preview__footer {
  min-height: 34px;
  font-size: 12px;
}

.screen--design .pill-button--accent {
  margin-top: 28px;
}

.screen--design .bottom-note {
  margin-top: 32px;
}

.card-preview[data-theme="design-1"] {
  background: linear-gradient(180deg, #ddeeff 0%, #f1ede3 100%);
  color: #000000;
  --card-text-color: #000000;
  --card-footer-bg: rgba(0, 0, 0, 0.08);
  --card-footer-text: rgba(0, 0, 0, 0.45);
}

.card-preview[data-theme="design-1"]::before,
.card-preview[data-theme="design-1"]::after {
  display: none;
}

.card-preview[data-theme="design-1"] .card-preview__frame--background-sticker {
  display: block;
}

.card-preview[data-theme="design-1"] .card-preview__content {
  display: none;
}

.card-preview[data-theme="design-2"] {
  background: #050505;
  color: #000000;
  --card-text-color: #000000;
  --card-footer-bg: rgba(0, 0, 0, 0.08);
  --card-footer-text: rgba(0, 0, 0, 0.46);
}

.card-preview[data-theme="design-2"]::before,
.card-preview[data-theme="design-2"]::after {
  display: none;
}

.card-preview[data-theme="design-2"] .card-preview__frame--background-2 {
  display: block;
}

.card-preview[data-theme="design-2"] .card-preview__frame--background-2 .card-preview__frame-artboard {
  top: 0;
  left: 0;
  transform: none;
  transform-origin: center center;
}

.card-preview[data-theme="design-2"] .card-preview__content {
  display: none;
}

.card-preview--large[data-theme="design-2"] {
  aspect-ratio: 1 / 1;
}

.card-preview--result[data-theme="design-2"] {
  aspect-ratio: 1 / 1;
}

.card-preview[data-theme="design-3"] {
  background: #050505;
  color: #000000;
  --card-text-color: #000000;
  --card-footer-bg: rgba(0, 0, 0, 0.08);
  --card-footer-text: rgba(0, 0, 0, 0.45);
}

.card-preview[data-theme="design-3"]::before,
.card-preview[data-theme="design-3"]::after {
  display: none;
}

.card-preview[data-theme="design-3"] .card-preview__frame--background-3 {
  display: block;
}

.card-preview[data-theme="design-3"] .card-preview__content {
  display: none;
}

.card-preview[data-theme="design-4"] {
  background: #050505;
  color: #000000;
  --card-text-color: #000000;
  --card-footer-bg: rgba(0, 0, 0, 0.08);
  --card-footer-text: rgba(0, 0, 0, 0.45);
}

.card-preview[data-theme="design-4"]::before,
.card-preview[data-theme="design-4"]::after {
  display: none;
}

.card-preview[data-theme="design-4"] .card-preview__frame--background-4 {
  display: block;
}

.card-preview[data-theme="design-4"] .card-preview__content {
  display: none;
}

.card-preview--large[data-theme="design-4"] {
  aspect-ratio: 1 / 1;
}

.card-preview--result[data-theme="design-4"] {
  aspect-ratio: 1 / 1;
}

.card-preview[data-theme="design-5"] {
  background: #ffffff;
  color: #000000;
  --card-text-color: #000000;
  --card-footer-bg: rgba(0, 0, 0, 0.08);
  --card-footer-text: rgba(0, 0, 0, 0.46);
}

.card-preview[data-theme="design-5"]::before,
.card-preview[data-theme="design-5"]::after {
  display: none;
}

.card-preview[data-theme="design-5"] .card-preview__frame--background-5 {
  display: block;
}

.card-preview[data-theme="design-5"] .card-preview__content {
  display: none;
}

.card-preview--large[data-theme="design-5"] {
  aspect-ratio: 1 / 1;
}

.card-preview--result[data-theme="design-5"] {
  aspect-ratio: 1 / 1;
}

.card-preview[data-theme="design-6"] {
  background: #000000;
}

.card-preview[data-theme="design-6"]::before,
.card-preview[data-theme="design-6"]::after {
  display: none;
}

.card-preview[data-theme="design-6"] .card-preview__frame--background-1 {
  display: block;
}

.card-preview[data-theme="design-6"] .card-preview__content {
  display: none;
}

.loading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  height: 100%;
  gap: 36px;
}

.loading__basket {
  width: 278px;
  transform-origin: center center;
  animation: basketRock 2.2s ease-in-out infinite;
}

.loading__title {
  margin: 0;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 0.95;
}

.loading__title span {
  display: block;
}

.loading__title span:first-child {
  color: var(--accent);
}

.bottom-note--loading {
  width: 640px;
  margin-top: 110px;
}

.ready-step {
  display: grid;
  justify-items: center;
  width: min(1020px, calc(100% - 80px));
  margin: 72px auto 0;
  gap: 34px;
  padding-bottom: 12px;
}

.ready-step__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 3.8vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.ready-step .card-preview {
  margin-top: 0;
}

.screen--ready .pill-button--accent {
  margin-top: 8px;
}

.ready-links {
  display: grid;
  gap: 0;
  width: 640px;
  margin-top: 0;
}

.ready-link {
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  text-align: left;
}

.ready-link:first-child::before {
  content: "✎";
  margin-right: 10px;
}

.ready-link:last-child::before {
  content: "+";
  margin-right: 10px;
}

.screen--ready .bottom-note {
  margin-top: -8px;
}

.design-step {
  padding-bottom: 52px;
}

.screen--design .bottom-note {
  margin-top: 24px;
}

.promo {
  position: relative;
  isolation: isolate;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(1180px, calc(100% - 80px));
  margin: 112px auto 0;
}

.promo::before {
  content: "";
  position: absolute;
  top: 92px;
  left: 50%;
  width: 938px;
  height: 248px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.promo__title {
  position: relative;
  z-index: 3;
  margin: 0;
  width: min(1140px, 100%);
  color: #ffffff;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.promo__title span {
  display: block;
}

.promo__title span:first-child {
  color: var(--accent);
}

.promo__copy {
  position: relative;
  isolation: isolate;
  z-index: 6;
  width: min(620px, calc(100% - 120px));
  margin-top: 34px;
  text-align: center;
}

.promo__copy p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.promo__copy p:last-child {
  position: relative;
  z-index: 20;
  color: #ffffff;
  text-shadow: none;
}

.promo__details {
  display: inline-block;
  padding: 0 6px;
  color: #ffffff !important;
  opacity: 1 !important;
  position: relative;
  z-index: 30 !important;
  isolation: isolate;
  font-weight: 500;
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

.promo__details::before {
  content: "";
  position: absolute;
  inset: -10px -18px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  filter: blur(14px);
  pointer-events: none;
}

.promo__copy p + p {
  margin-top: 18px;
}

.promo__dates {
  color: var(--accent) !important;
  font-weight: 500;
}

.promo__actions {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  width: 640px;
  margin-top: 58px;
}

.promo__actions::before {
  content: "";
  position: absolute;
  top: -54px;
  left: calc(50% + 4px);
  width: 856px;
  height: 160px;
  background: rgba(0, 0, 0, 0.92);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.screen--promo .bottom-note {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes basketRock {
  0% {
    transform: rotate(0deg);
  }

  36.36% {
    transform: rotate(-5deg);
  }

  72.72% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 1320px) {
  .topbar__link {
    min-width: 290px;
  }

  .art--hero-basket {
    right: -430px;
    width: 840px;
  }

  .art--step-package {
    right: -760px;
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100vh;
    padding-top: 18px;
  }

  .topbar {
    padding: 0 24px;
  }

  .topbar__link {
    min-width: 240px;
    min-height: 48px;
    font-size: 16px;
  }

  .stage {
    min-height: 900px;
    height: auto;
  }

  .hero,
  .step,
  .design-step,
  .ready-step,
  .promo {
    width: calc(100% - 48px);
  }

  .form-card,
  .message-card,
  .template-card,
  .design-grid,
  .preview-block,
  .promo__actions,
  .ready-links,
  .bottom-note,
  .pill-button--primary,
  .pill-button--accent,
  .bottom-note--loading {
    width: 100%;
  }

  .card-preview--large,
  .card-preview--result {
    width: min(500px, 100%);
  }
}

@media (max-height: 920px) {
  .screen--hero {
    padding-bottom: 36px;
  }

  .hero__footer {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(640px, calc(100% - 80px));
    margin: clamp(140px, 20vh, 220px) auto 0;
    transform: none;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  :root {
    --screen-canvas-base-width: 960;
    --radius: 24px;
  }

  body {
    overflow: hidden;
  }

  .page-shell {
    height: 100svh;
    min-height: 100svh;
    padding: max(10px, env(safe-area-inset-top)) 0 0;
    gap: 10px;
  }

  .topbar {
    min-height: 56px;
    padding: 0 28px;
  }

  .brand__logo {
    width: 160px;
    height: auto;
  }

  .topbar__link {
    display: none;
  }

  .stage {
    min-height: 0;
    height: 100%;
    border-radius: 24px 24px 0 0;
  }

  .screen--hero,
  .screen--step,
  .screen--loading,
  .screen--ready,
  .screen--promo {
    overflow: hidden;
  }

  .screen--design {
    overflow-y: auto;
  }

  .screen__canvas {
    width: 960px;
    height: 1280px;
  }

  .screen__blur--top {
    top: 110px;
    width: 620px;
    height: 180px;
    filter: blur(72px);
  }

  .screen__blur--bottom {
    top: 860px;
    width: 620px;
    height: 160px;
    filter: blur(72px);
  }

  body[data-current-screen="step-1"] .topbar,
  body[data-current-screen="step-2"] .topbar,
  body[data-current-screen="step-3"] .topbar {
    visibility: hidden;
  }

  .back-link {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 18px);
    left: 24px;
    z-index: 30;
    padding: 8px 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 18px;
  }

  .back-link--wide {
    left: 24px;
  }

  .hero {
    width: min(640px, calc(100% - 56px));
    margin-top: clamp(32px, 6vh, 60px);
  }

  .hero::before {
    top: 116px;
    width: 72%;
    height: 220px;
    filter: blur(72px);
  }

  .hero__title {
    font-size: clamp(34px, 6vw, 46px);
  }

  .hero__lead {
    width: min(560px, 100%);
    margin-top: 24px;
    font-size: clamp(18px, 2.3vw, 22px);
  }

  .hero__footer {
    width: min(560px, calc(100% - 56px));
    bottom: 32px;
    gap: 18px;
  }

  .hero__footer::before {
    top: -18px;
    width: 78%;
    height: 140px;
    filter: blur(72px);
  }

  .hero__caption {
    width: min(440px, 100%);
    font-size: 17px;
  }

  .pill-button {
    min-height: 48px;
    padding: 10px 24px;
    font-size: 17px;
  }

  .step {
    width: min(560px, calc(100% - 56px));
    margin: 18px auto 0;
  }

  .step--name,
  .step--message {
    margin-top: 12px;
  }

  .step__label {
    font-size: 22px;
  }

  .step__title {
    margin-top: 18px;
    font-size: clamp(34px, 6.2vw, 46px);
  }

  .step__lead {
    margin-top: 18px;
    font-size: 18px;
  }

  .form-card {
    width: 100%;
    margin-top: 22px;
    padding: 20px 14px;
    gap: 20px;
  }

  .field {
    gap: 10px;
  }

  .field__label,
  .field__input {
    font-size: 17px;
  }

  .field__input {
    height: 52px;
    padding: 0 20px;
  }

  .privacy-note__icon {
    width: 16px;
    height: 18px;
    margin-top: 0;
  }

  .privacy-note p {
    font-size: 12px;
  }

  .switcher {
    width: min(360px, 100%);
    margin-top: 20px;
    padding: 6px;
  }

  .switcher__button {
    min-height: 42px;
    font-size: 16px;
  }

  .message-card,
  .template-card {
    width: 100%;
    margin-top: 20px;
  }

  [data-screen="step-2"] .message-card {
    min-height: 170px;
    padding: 16px 16px 26px;
  }

  [data-screen="step-2"] .message-card__input {
    min-height: 118px;
    font-size: 17px;
  }

  [data-screen="step-2"] .template-card {
    max-height: 230px;
    padding: 8px;
  }

  [data-screen="step-2"] .template-card__list {
    max-height: 214px;
    gap: 8px;
  }

  [data-screen="step-2"] .template-card__item {
    min-height: 50px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .screen--step .pill-button {
    margin-top: 20px;
  }

  .bottom-note {
    min-height: 38px;
    margin-top: 18px;
    font-size: 14px;
  }

  .validation-error--light {
    width: 100%;
    font-size: 13px;
  }

  .design-step {
    width: min(760px, calc(100% - 56px));
    margin: 18px auto 0;
    padding-bottom: 36px;
  }

  .design-grid {
    width: 100%;
    margin-top: 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .design-option__label {
    font-size: 14px;
  }

  .preview-block {
    width: 100%;
    gap: 22px;
    margin-top: 24px;
  }

  .card-preview--large {
    width: min(420px, 100%);
  }

  .screen--design .pill-button--accent {
    margin-top: 20px;
  }

  .screen--design .bottom-note {
    margin-top: 18px;
  }

  .loading {
    height: 100%;
    gap: 24px;
    padding: 24px 28px 32px;
  }

  .loading__basket {
    width: 220px;
  }

  .loading__title {
    font-size: clamp(40px, 6vw, 52px);
  }

  .bottom-note--loading {
    width: min(560px, calc(100% - 56px));
    margin-top: 72px;
  }

  .ready-step {
    width: min(560px, calc(100% - 56px));
    margin: 28px auto 0;
    gap: 18px;
    padding-bottom: 0;
  }

  .ready-step__title {
    font-size: clamp(34px, 6vw, 48px);
    line-height: 0.92;
    white-space: normal;
  }

  .card-preview--result {
    width: min(320px, 56vw);
  }

  .screen--ready .pill-button--accent {
    margin-top: 6px;
  }

  .ready-links {
    width: 100%;
  }

  .ready-link {
    min-height: 46px;
    font-size: 16px;
  }

  .screen--ready .bottom-note {
    margin-top: 10px;
  }

  .promo {
    width: min(560px, calc(100% - 56px));
    margin: 24px auto 0;
  }

  .promo::before {
    top: 80px;
    width: 78%;
    height: 200px;
    filter: blur(72px);
  }

  .promo__title {
    width: 100%;
    font-size: clamp(30px, 6vw, 46px);
    text-align: left;
  }

  .promo__copy {
    width: 100%;
    margin-top: 24px;
    text-align: left;
  }

  .promo__copy p {
    font-size: 17px;
  }

  .promo__actions {
    width: 100%;
    margin-top: 26px;
    gap: 14px;
  }

  .promo__actions::before {
    top: -32px;
    width: 80%;
    height: 120px;
    filter: blur(72px);
  }

  .screen--promo .bottom-note {
    margin-top: 22px;
  }

  .art--hero-package {
    top: 160px;
    left: -460px;
    width: 1200px;
  }

  .art--hero-basket {
    right: -300px;
    bottom: -70px;
    width: 760px;
  }

  [data-screen="step-1"] .art--step-package,
  [data-screen="step-2"] .art--step-package,
  [data-screen="step-3"] .art--step-package,
  [data-screen="ready"] .art--step-package {
    top: 200px;
    right: -560px;
    width: 1240px;
    opacity: 0.5;
  }

  [data-screen="step-1"] .art--step-basket,
  [data-screen="step-2"] .art--step-basket,
  [data-screen="step-3"] .art--step-basket,
  [data-screen="ready"] .art--step-basket {
    left: -290px;
    bottom: -140px;
    width: 760px;
    opacity: 0.82;
  }

  [data-screen="promo"] .art--step-package {
    top: 220px;
    left: -420px;
    width: 1200px;
  }

  [data-screen="promo"] .art--promo-basket {
    right: -260px;
    bottom: -90px;
    width: 760px;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  :root {
    --screen-canvas-base-width: 760;
    --radius: 22px;
  }

  .page-shell {
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }

  .topbar {
    min-height: 44px;
    padding: 0 20px;
  }

  .brand__logo {
    width: 116px;
  }

  .stage {
    border-radius: 22px 22px 0 0;
  }

  .screen__canvas {
    width: 760px;
    height: 920px;
  }

  .screen__blur--top {
    top: 86px;
    width: 480px;
    height: 140px;
    filter: blur(56px);
  }

  .screen__blur--bottom {
    top: 640px;
    width: 500px;
    height: 140px;
    filter: blur(56px);
  }

  .back-link {
    top: calc(env(safe-area-inset-top) + 14px);
    left: 20px;
    font-size: 14px;
  }

  .hero {
    width: calc(100% - 40px);
    margin-top: 24px;
  }

  .hero::before {
    top: 88px;
    width: 86%;
    height: 154px;
    filter: blur(56px);
  }

  .hero__title {
    font-size: clamp(28px, 10.7vw, 40px);
  }

  .hero__lead {
    width: 100%;
    margin-top: 18px;
    font-size: 15px;
  }

  .hero__footer {
    width: calc(100% - 40px);
    bottom: 20px;
    gap: 14px;
  }

  .hero__footer::before {
    top: -16px;
    width: 96%;
    height: 110px;
    filter: blur(56px);
  }

  .hero__caption {
    width: 100%;
    font-size: 14px;
  }

  .pill-button {
    min-height: 40px;
    padding: 10px 20px;
    gap: 8px;
    font-size: 14px;
  }

  .pill-button__icon,
  .pill-button__icon svg {
    width: 18px;
    height: 18px;
  }

  .step {
    width: calc(100% - 40px);
    margin-top: 10px;
  }

  .step__label {
    font-size: 17px;
  }

  .step__title {
    margin-top: 16px;
    font-size: clamp(24px, 11.2vw, 36px);
  }

  .step__lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .form-card {
    margin-top: 20px;
    padding: 18px 12px;
    gap: 16px;
    border-radius: 12px;
  }

  .field__label {
    font-size: 14px;
  }

  .field__input {
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
  }

  .validation-error {
    font-size: 12px;
  }

  .privacy-note {
    gap: 8px;
  }

  .privacy-note__icon {
    width: 12px;
    height: 14px;
  }

  .privacy-note p {
    font-size: 10px;
  }

  .switcher {
    width: min(284px, 100%);
    margin-top: 20px;
    padding: 5px;
    border-radius: 12px;
  }

  .switcher__button {
    min-height: 38px;
    border-radius: 8px;
    font-size: 12px;
  }

  [data-screen="step-2"] .message-card {
    min-height: 174px;
    margin-top: 20px;
    padding: 14px 14px 24px;
    border-radius: 12px;
  }

  [data-screen="step-2"] .message-card__input {
    min-height: 122px;
    font-size: 14px;
  }

  [data-screen="step-2"] .message-card__counter {
    right: 16px;
    bottom: 14px;
    font-size: 12px;
  }

  [data-screen="step-2"] .template-card {
    max-height: 252px;
    margin-top: 18px;
    padding: 8px;
    border-radius: 12px;
  }

  [data-screen="step-2"] .template-card__list {
    max-height: 236px;
    gap: 10px;
    padding-right: 4px;
  }

  [data-screen="step-2"] .template-card__item {
    min-height: 56px;
    padding: 16px;
    border-radius: 10px;
    font-size: 13px;
  }

  .screen--step .pill-button {
    margin-top: 16px;
  }

  .bottom-note {
    min-height: 32px;
    margin-top: 14px;
    gap: 8px;
    font-size: 12px;
  }

  .validation-error--light {
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
  }

  .design-step {
    width: calc(100% - 32px);
    margin-top: 10px;
    padding-bottom: 24px;
  }

  .design-grid {
    margin-top: 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .design-option__label {
    padding: 6px 8px 8px;
    font-size: 13px;
  }

  .preview-block {
    gap: 18px;
    margin-top: 20px;
  }

  .preview-block__title {
    font-size: 14px;
  }

  .card-preview--large {
    width: min(330px, 100%);
  }

  .screen--design .pill-button--accent {
    margin-top: 18px;
  }

  .screen--design .bottom-note {
    margin-top: 16px;
  }

  .loading {
    gap: 18px;
    padding: 18px 20px 24px;
  }

  .loading__basket {
    width: 148px;
  }

  .loading__title {
    font-size: 28px;
    line-height: 0.94;
  }

  .bottom-note--loading {
    width: calc(100% - 40px);
    margin-top: auto;
  }

  .ready-step {
    width: calc(100% - 40px);
    margin: 16px auto 0;
    gap: 14px;
  }

  .ready-step__title {
    width: 100%;
    font-size: 28px;
    line-height: 0.92;
    text-align: left;
  }

  .card-preview--result {
    width: min(290px, calc(100vw - 72px));
  }

  .ready-link {
    min-height: 40px;
    font-size: 16px;
  }

  .screen--ready .bottom-note {
    margin-top: 4px;
  }

  .promo {
    width: calc(100% - 40px);
    margin: 18px auto 0;
  }

  .promo__title {
    font-size: 21px;
    line-height: 0.94;
    text-align: left;
  }

  .promo__copy {
    width: 100%;
    margin-top: 18px;
    text-align: left;
  }

  .promo__copy p {
    font-size: 14px;
  }

  .promo__copy p + p {
    margin-top: 12px;
  }

  .promo__actions {
    width: 100%;
    margin-top: 18px;
    gap: 10px;
  }

  .screen--promo .bottom-note {
    margin-top: 12px;
  }

  .art--hero-package {
    top: 180px;
    left: -420px;
    width: 1100px;
    opacity: 0.75;
  }

  .art--hero-basket {
    right: -240px;
    bottom: -80px;
    width: 650px;
  }

  [data-screen="step-1"] .art--step-package,
  [data-screen="step-2"] .art--step-package,
  [data-screen="ready"] .art--step-package {
    display: none;
  }

  [data-screen="step-1"] .art--step-basket,
  [data-screen="step-2"] .art--step-basket {
    left: -220px;
    bottom: -140px;
    width: 700px;
    opacity: 0.95;
    transform: rotate(24deg);
  }

  [data-screen="step-3"] .art--step-package {
    top: 120px;
    right: -460px;
    width: 980px;
    opacity: 0.5;
  }

  [data-screen="step-3"] .art--step-basket {
    left: -260px;
    bottom: -120px;
    width: 720px;
    opacity: 0.9;
    transform: rotate(24deg);
  }

  [data-screen="ready"] .art--step-basket {
    left: -220px;
    bottom: -110px;
    width: 720px;
    opacity: 0.88;
    transform: rotate(24deg);
  }

  [data-screen="promo"] .art--step-package {
    top: 280px;
    left: -420px;
    width: 1080px;
    opacity: 0.9;
  }

  [data-screen="promo"] .art--promo-basket {
    right: -220px;
    bottom: -120px;
    width: 620px;
    opacity: 0.8;
    transform: rotate(-10deg);
  }

  .screen--design .screen__bg {
    inset: 0 0 -180px;
  }

  .screen--ready .screen__bg {
    inset: 0 0 -40px;
  }
}

@media (max-height: 760px) and (orientation: portrait) {
  .hero {
    margin-top: 18px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__lead {
    font-size: 13px;
  }

  .hero__caption {
    font-size: 13px;
  }

  .step__title {
    font-size: 24px;
  }

  .step__lead {
    font-size: 13px;
  }

  .form-card {
    margin-top: 16px;
    padding: 14px 12px;
  }

  [data-screen="step-2"] .message-card {
    min-height: 150px;
  }

  [data-screen="step-2"] .message-card__input {
    min-height: 100px;
  }

  [data-screen="step-2"] .template-card {
    max-height: 210px;
  }

  [data-screen="step-2"] .template-card__list {
    max-height: 194px;
  }

  .screen--step .pill-button {
    margin-top: 12px;
  }

  .bottom-note {
    margin-top: 10px;
  }

  .ready-step {
    gap: 10px;
  }

  .card-preview--result {
    width: min(258px, calc(100vw - 92px));
  }

  .promo__copy p {
    font-size: 13px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  :root {
    --radius: 15px;
    --portrait-shell-x: clamp(16px, 4vw, 24px);
    --portrait-content-width: min(calc(100% - (var(--portrait-shell-x) * 2)), 420px);
  }

  body {
    overflow: hidden;
    background: #000000;
  }

  .page-shell {
    padding: 0;
    gap: 0;
    background: #000000;
  }

  .topbar {
    min-height: clamp(96px, 14svh, 132px);
    padding:
      max(20px, env(safe-area-inset-top))
      var(--portrait-shell-x)
      16px;
    align-items: flex-end;
    background: #ffffff;
  }

  .brand__logo {
    width: clamp(140px, 26vw, 168px);
    height: auto;
  }

  .topbar__link {
    display: none;
  }

  .stage {
    min-height: 0;
    height: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #000000;
  }

  .screen--hero,
  .screen--step,
  .screen--loading,
  .screen--ready,
  .screen--promo {
    overflow: hidden;
  }

  .screen--design {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .screen__canvas {
    width: min(calc(100vw + 44px), 640px);
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .screen__blur--top {
    top: 146px;
    width: min(118vw, 479px);
    height: 138px;
    filter: blur(50px);
    opacity: 0.8;
  }

  .screen__blur--bottom {
    top: auto;
    bottom: 54px;
    width: min(108vw, 430px);
    height: 126px;
    filter: blur(75px);
    opacity: 0.9;
  }

  body[data-current-screen="step-1"] .topbar,
  body[data-current-screen="step-2"] .topbar,
  body[data-current-screen="step-3"] .topbar {
    visibility: hidden;
  }

  .back-link {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 14px);
    left: 14px;
    z-index: 30;
    padding: 10px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1;
  }

  .back-link--wide {
    left: 14px;
  }

  .pill-button {
    min-height: 42px;
    padding: 10px 18px;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
  }

  .pill-button__icon,
  .pill-button__icon svg {
    width: 18px;
    height: 18px;
  }

  .bottom-note {
    width: min(359px, 100%);
    min-height: 32px;
    margin-top: 12px;
    gap: 8px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .bottom-note__dot {
    width: 6px;
    height: 6px;
  }

  .hero,
  .step--name,
  .step--message,
  .loading,
  .ready-step,
  .promo {
    width: var(--portrait-content-width);
    min-height: 100%;
    margin: 0 auto;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    text-align: left;
  }

  .hero::before {
    top: 172px;
    width: min(119vw, 479px);
    height: 130px;
    filter: blur(50px);
  }

  .hero__title {
    width: min(364px, 100%);
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1;
    text-align: left;
  }

  .hero__title em {
    display: block;
  }

  .hero__lead {
    width: min(364px, 100%);
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
  }

  .hero__footer {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 2;
    width: min(362px, 100%);
    margin-top: auto;
    transform: none;
    justify-items: stretch;
    gap: 10px;
  }

  .hero__footer::before {
    top: -22px;
    width: 118%;
    height: 108px;
    filter: blur(56px);
  }

  .hero__caption {
    width: min(364px, 100%);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
  }

  .hero .pill-button {
    width: min(362px, 100%);
    min-height: 46px;
  }

  .art--hero-package {
    top: 222px;
    left: -84px;
    width: min(154vw, 670px);
    height: auto;
    transform: rotate(16.57deg);
    opacity: 1;
  }

  .art--hero-basket {
    display: none;
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--portrait-content-width);
    margin: 0 auto;
  }

  .step--name,
  .step--message {
    padding-top: 28px;
  }

  .step__label {
    font-size: 21px;
    font-weight: 700;
  }

  .step__title {
    margin-top: 24px;
    font-size: clamp(36px, 8.6vw, 52px);
    line-height: 1;
  }

  .step__lead {
    width: min(238px, 100%);
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
  }

  .step__lead--message {
    width: min(200px, 100%);
  }

  .form-card {
    width: min(360px, 100%);
    margin-top: 28px;
    padding: 20px 10px;
    gap: 20px;
    border-radius: 10px;
  }

  .field {
    gap: 10px;
  }

  .field__label {
    font-size: 14px;
  }

  .field__input {
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 16px;
  }

  .validation-error {
    font-size: 12px;
  }

  .privacy-note {
    gap: 5px;
  }

  .privacy-note__icon {
    width: 14px;
    height: 18px;
    margin-top: 1px;
  }

  .privacy-note p {
    font-size: 10px;
  }

  .step--name .pill-button,
  .step--message .pill-button {
    width: min(362px, 100%);
    margin-top: auto;
  }

  .switcher {
    width: min(283px, 100%);
    margin-top: 22px;
    padding: 5px;
    border-radius: 10px;
  }

  .switcher__button {
    min-height: 32px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
  }

  .message-card,
  .template-card,
  .validation-error--light {
    width: min(362px, 100%);
  }

  [data-screen="step-2"] .message-card {
    min-height: 0;
    max-height: clamp(130px, 24svh, 176px);
    height: clamp(130px, 24svh, 176px);
    margin-top: 16px;
    padding: 16px 16px 24px;
    border-radius: 10px;
    flex-shrink: 1;
    overflow: hidden;
  }

  [data-screen="step-2"] .message-card__input {
    min-height: 80px;
    height: 100%;
    font-size: 14px;
    flex-shrink: 1;
  }

  [data-screen="step-2"] .message-card__counter {
    right: 16px;
    bottom: 10px;
    font-size: 10px;
  }

  [data-screen="step-2"] .template-card {
    max-height: clamp(180px, 34svh, 268px);
    margin-top: 16px;
    padding: 10px;
    border-radius: 10px;
    flex-shrink: 1;
    min-height: 0;
    overflow: hidden;
  }

  [data-screen="step-2"] .template-card__list {
    max-height: 100%;
    gap: 10px;
    padding-right: 6px;
  }

  [data-screen="step-2"] .template-card__item {
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
  }

  .validation-error--light {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
  }

  [data-screen="step-1"] .art--step-package,
  [data-screen="step-2"] .art--step-package,
  [data-screen="step-3"] .art--step-package,
  [data-screen="ready"] .art--step-package {
    display: none;
  }

  [data-screen="step-1"] .art--step-basket,
  [data-screen="step-2"] .art--step-basket,
  [data-screen="step-3"] .art--step-basket {
    left: -88px;
    bottom: -24px;
    width: min(96vw, 430px);
    opacity: 0.96;
    transform: rotate(7deg);
  }

  .design-step {
    width: min(362px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 max(24px, env(safe-area-inset-bottom) + 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .step__title--design {
    margin-top: 24px;
  }

  .design-grid {
    width: 100%;
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .design-option {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
  }

  .design-option__preview {
    aspect-ratio: 170 / 168;
    border-radius: 10px 10px 0 0;
  }

  .design-option__label {
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
  }

  .preview-block {
    width: 100%;
    margin-top: 36px;
    gap: 18px;
  }

  .preview-block__title {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
  }

  .card-preview--large {
    width: min(290px, calc(100vw - 112px));
  }

  .screen--design .pill-button--accent {
    width: min(362px, 100%);
    margin-top: 24px;
  }

  .screen--design .bottom-note {
    margin-top: 16px;
  }

  .screen--design .screen__bg {
    inset: 0;
  }

  .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 0;
  }

  .loading__basket {
    width: 128px;
  }

  .loading__title {
    font-size: clamp(36px, 8.6vw, 52px);
    line-height: 1;
    color: var(--accent);
  }

  .bottom-note--loading {
    width: min(359px, 100%);
    margin-top: auto;
  }

  .ready-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
  }

  .ready-step__title {
    width: min(364px, 100%);
    font-size: clamp(36px, 8.4vw, 52px);
    line-height: 1;
    text-align: left;
    white-space: normal;
  }

  .card-preview--result {
    width: min(320px, calc(100vw - 82px));
    flex-shrink: 1;
  }

  [data-screen="ready"] .art--step-basket {
    display: none;
  }

  [data-screen="ready"] .screen__blur--top {
    top: 132px;
    width: min(108vw, 430px);
    height: 132px;
    opacity: 0.5;
  }

  [data-screen="ready"] .screen__blur--bottom {
    bottom: 42px;
    width: min(108vw, 430px);
    height: 132px;
    opacity: 0.5;
  }

  .screen--ready .pill-button--accent {
    width: min(362px, 100%);
    margin-top: 8px;
  }

  .ready-links {
    width: min(362px, 100%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
    padding-top: 5px;
    gap: 0;
    margin-top: 4px;
  }

  .ready-link {
    min-height: 36px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
  }

  .screen--ready .bottom-note {
    margin-top: auto;
  }

  .promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
  }

  .promo::before,
  .promo__actions::before {
    display: none;
  }

  .promo__title {
    width: min(364px, 100%);
    font-size: clamp(36px, 8vw, 50px);
    line-height: 0.96;
    text-align: left;
    color: var(--accent);
  }

  .promo__copy {
    width: min(364px, 100%);
    margin-top: 24px;
    text-align: left;
  }

  .promo__copy p {
    font-size: 18px;
    font-weight: 500;
  }

  .promo__copy p + p {
    margin-top: 16px;
  }

  .promo__actions {
    width: min(362px, 100%);
    margin-top: auto;
    gap: 14px;
  }

  .screen--promo .bottom-note {
    margin-top: 14px;
  }

  [data-screen="promo"] .art--step-package {
    display: block;
    top: 262px;
    left: -120px;
    right: auto;
    width: min(175vw, 780px);
    opacity: 0.98;
    transform: rotate(17deg);
  }

  [data-screen="promo"] .art--promo-basket {
    right: -150px;
    bottom: -18px;
    width: min(104vw, 470px);
    opacity: 0.82;
    transform: rotate(-10deg);
  }
}

@media (max-width: 1024px) and (orientation: portrait) and (max-height: 760px) {
  .topbar {
    min-height: 78px;
    padding-bottom: 8px;
  }

  .hero,
  .step--name,
  .step--message,
  .ready-step,
  .promo {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: 18px;
  }

  .hero__title,
  .step__title,
  .ready-step__title,
  .promo__title,
  .loading__title {
    font-size: 30px;
  }

  .step__label {
    font-size: 18px;
  }

  .hero__lead,
  .step__lead {
    font-size: 14px;
  }

  .promo__copy p {
    font-size: 16px;
  }

  .step--name,
  .step--message {
    padding-top: 18px;
  }

  .step__title {
    margin-top: 16px;
  }

  .step__lead {
    margin-top: 12px;
  }

  .hero__lead {
    margin-top: 10px;
  }

  .form-card {
    margin-top: 16px;
    padding: 14px 10px;
    gap: 14px;
  }

  [data-screen="step-2"] .message-card {
    height: clamp(100px, 18svh, 140px);
    max-height: 140px;
    margin-top: 12px;
  }

  [data-screen="step-2"] .message-card__input {
    min-height: 60px;
  }

  [data-screen="step-2"] .template-card {
    max-height: clamp(140px, 26svh, 200px);
    margin-top: 12px;
    min-height: 0;
  }

  .switcher {
    margin-top: 14px;
  }

  .screen--step .pill-button,
  .step--name .pill-button,
  .step--message .pill-button {
    margin-top: auto;
  }

  .bottom-note {
    margin-top: 8px;
  }

  .card-preview--result {
    width: min(250px, calc(100vw - 98px));
  }

  .ready-step {
    gap: 10px;
    padding-top: 16px;
  }

  .hero__footer {
    gap: 8px;
  }

  .hero .pill-button {
    min-height: 42px;
  }

  .hero__caption {
    font-size: 12px;
  }

  .loading__basket {
    width: 100px;
  }

  .promo {
    padding-top: 16px;
  }

  .promo__copy {
    margin-top: 16px;
  }

  .promo__copy p + p {
    margin-top: 12px;
  }

  .design-step {
    padding-top: 18px;
  }
}
