/* ---------- Шрифты (self-hosted, OFL) ---------- */
/* Unbounded и Rubik — variable-шрифты: один файл покрывает весь диапазон начертаний. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pacifico-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pacifico-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Russo One и PT Sans — для классического стиля стикера. */
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russoone-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russoone-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptsans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptsans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ptsans-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ptsans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}

/* ---------- База ---------- */
:root {
  --ink: #12061F;
  --pink: #FF2E88;
  --amber: #FFB000;
  --yellow: #FFE66D;
  --teal: #00E5D4;
  --violet: #7B2FF7;
  --panel: #200C3A;
  --lilac: #CDB8EC;
  --display: Unbounded, system-ui, sans-serif;
  --body: Rubik, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yellow); }
a:hover { color: var(--pink); }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1280px; margin: 0 auto; }

.grad {
  background: linear-gradient(90deg, #FF2E88, #FFB000, #FFE66D, #00E5D4, #FF2E88);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.sun {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 54%, #000 54% 63%, transparent 63% 68%, #000 68% 76%, transparent 76% 82%, #000 82% 88%, transparent 88% 95%, #000 95%);
  mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 54%, #000 54% 63%, transparent 63% 68%, #000 68% 76%, transparent 76% 82%, #000 82% 88%, transparent 88% 95%, #000 95%);
}

/* ---------- Анимации (из макета) ---------- */
.m-on .grad { animation: shimmer 5s linear infinite; }
.m-on .glow { animation: pulse 5s ease-in-out infinite; }
.m-on .palm { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
.m-on .palm.slow { animation-duration: 8s; animation-delay: -3s; }
.m-on .float1 { animation: floaty 6s ease-in-out infinite; }
.m-on .float2 { animation: floaty 7s ease-in-out infinite; animation-delay: -2s; }
.m-on .float3 { animation: floaty 5.5s ease-in-out infinite; animation-delay: -4s; }
.m-on .star { animation: twinkle 3s ease-in-out infinite; }
.m-on .star.d1 { animation-delay: -1s; }
.m-on .star.d2 { animation-delay: -2s; }
.m-on .track { animation: marquee 22s linear infinite; }
.m-on .track.rev { animation-direction: reverse; animation-duration: 28s; }
.m-on .flicker { animation: flicker 4s linear infinite; }
.m-on .cloud { animation: drift 22s ease-in-out infinite alternate; }
.m-on .cloud.c2 { animation-duration: 28s; animation-delay: -9s; }
.m-on .cloud.c3 { animation-duration: 34s; animation-delay: -17s; }
.m-on .glint { animation: glint 3.6s ease-in-out infinite; }
.m-on .glint.g2 { animation-delay: -.45s; }
.m-on .glint.g3 { animation-delay: -.9s; }
.m-on .glint.g4 { animation-delay: -1.35s; }
.m-on .glint.g5 { animation-delay: -1.8s; }
.m-on .glint.g6 { animation-delay: -2.25s; }
.m-on .glint.g7 { animation-delay: -2.7s; }
.m-on .glint.g8 { animation-delay: -3.15s; }
.m-on .rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.m-on .rise.r2 { animation-delay: .15s; }
.m-on .rise.r3 { animation-delay: .3s; }
.m-on .rise.r4 { animation-delay: .45s; }
.m-on .hint-heart { display: inline-block; animation: beat 1.2s ease-in-out infinite; }

@keyframes shimmer { to { background-position: 200% 50%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flicker { 0%, 18%, 22%, 54%, 58%, 100% { opacity: 1; } 20%, 56% { opacity: .35; } }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes glint { 0%, 100% { transform: scaleX(.78); opacity: .5; } 50% { transform: scaleX(1.06); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .m-on * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 16px; border: 3px solid var(--ink);
  color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 17px;
  text-decoration: none; cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible, .field:focus-visible, .swatch:focus-visible, .upl:focus-within,
.format-toggle button:focus-visible, .navlink:focus-visible, input[type=range]:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
.btn-yellow { background: linear-gradient(135deg, #FFE66D, #FFB000); }
.btn-pink { background: var(--pink); padding: 0 24px; }
.btn-teal { background: var(--teal); }
.btn-outline {
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 2px solid var(--lilac); background: transparent; color: #FFFFFF;
  font: 700 15px var(--body); box-shadow: none;
}
.btn-outline:hover { color: #FFFFFF; box-shadow: none; }
.btn-outline:active { box-shadow: none; }

.field {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 14px; border: 2px solid #4A2380;
  background: var(--ink); color: #FFFFFF;
  font: 500 17px var(--body);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.field { padding: 14px 16px; line-height: 1.45; resize: vertical; min-height: 104px; }
.field::placeholder { color: #8C74B3; }
.field:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 136, .25), 0 0 24px rgba(255, 46, 136, .35); }
input[type=range] { accent-color: var(--pink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 820px;
  background: linear-gradient(180deg, #12061F 0%, #2B0B4F 28%, #5B1380 50%, #B81D6E 70%, #FF5E3A 86%, #FFB000 100%);
}
.star { position: absolute; border-radius: 50%; }
.s1 { top: 120px; left: 12%; width: 4px; height: 4px; background: #FFFFFF; }
.s2 { top: 200px; left: 46%; width: 3px; height: 3px; background: #FFE66D; }
.s3 { top: 90px; left: 68%; width: 5px; height: 5px; background: #FFFFFF; }
.s4 { top: 260px; left: 88%; width: 3px; height: 3px; background: #00E5D4; }
.s5 { top: 160px; left: 30%; width: 3px; height: 3px; background: #FFFFFF; }
.s6 { top: 300px; left: 6%; width: 4px; height: 4px; background: #FF2E88; }

.hero-glow {
  position: absolute; left: 50%; bottom: 60px; width: 640px; height: 640px; margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 0, .55) 0%, rgba(255, 46, 136, .35) 40%, rgba(255, 46, 136, 0) 70%);
}
.hero-sun {
  position: absolute; left: 50%; bottom: 120px; width: 420px; height: 420px; margin-left: -210px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFE66D 0%, #FFB000 35%, #FF5E3A 65%, #FF2E88 100%);
}
.hero-palm { position: absolute; z-index: 1; aspect-ratio: 220 / 420; width: auto; color: var(--ink); }
.hp1 { left: 1%; bottom: 96px; height: 460px; }
.hp2 { left: 11%; bottom: 96px; height: 300px; color: #2B0B4F; }
.hp3 { position: absolute; right: 2%; bottom: 96px; height: 520px; aspect-ratio: 220 / 420; z-index: 1; transform: scaleX(-1); }
.hp3 .hero-palm { position: static; height: 100%; display: block; }

.hero-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 210px; z-index: 1;
  background: linear-gradient(180deg, #3B1468 0%, #1E0A3C 55%, #12061F 100%);
}
.hero-horizon {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255, 111, 174, 0), #FF6FAE 50%, rgba(255, 111, 174, 0));
  box-shadow: 0 0 18px var(--pink);
}
.hero-glints {
  position: absolute; left: 50%; top: 0; width: 440px; margin-left: -220px;
  padding-top: 12px; display: flex; flex-direction: column; align-items: center;
}
.glint { border-radius: 99px; }
.gg1 { width: 400px; height: 6px; background: linear-gradient(90deg, rgba(255, 176, 0, 0), #FFB000 25%, #FF5E3A 60%, rgba(255, 46, 136, 0)); }
.gg2 { margin-top: 9px; width: 330px; height: 5px; background: linear-gradient(90deg, rgba(255, 176, 0, 0), #FFB000 25%, #FF5E3A 60%, rgba(255, 46, 136, 0)); }
.gg3 { margin-top: 11px; width: 270px; height: 5px; opacity: .9; background: linear-gradient(90deg, rgba(255, 94, 58, 0), #FF8A3D 30%, #FF2E88 70%, rgba(255, 46, 136, 0)); }
.gg4 { margin-top: 13px; width: 210px; height: 4px; background: linear-gradient(90deg, rgba(255, 94, 58, 0), #FF8A3D 30%, #FF2E88 70%, rgba(255, 46, 136, 0)); }
.gg5 { margin-top: 15px; width: 160px; height: 4px; background: linear-gradient(90deg, rgba(255, 46, 136, 0), #FF2E88 50%, rgba(255, 46, 136, 0)); }
.gg6 { margin-top: 18px; width: 110px; height: 3px; background: linear-gradient(90deg, rgba(255, 46, 136, 0), #FF2E88 50%, rgba(255, 46, 136, 0)); }
.gg7 { margin-top: 21px; width: 70px; height: 3px; background: linear-gradient(90deg, rgba(200, 80, 255, 0), #C850FF 50%, rgba(200, 80, 255, 0)); }
.gg8 { margin-top: 24px; width: 36px; height: 2px; background: linear-gradient(90deg, rgba(200, 80, 255, 0), #C850FF 50%, rgba(200, 80, 255, 0)); }
.cloud { position: absolute; border-radius: 999px; }
.hc1 { left: 24%; bottom: 330px; width: 420px; height: 22px; background: linear-gradient(90deg, rgba(255, 140, 190, 0), rgba(255, 140, 190, .6), rgba(255, 140, 190, 0)); filter: blur(5px); }
.hc2 { left: 56%; bottom: 268px; width: 320px; height: 16px; background: linear-gradient(90deg, rgba(255, 200, 120, 0), rgba(255, 200, 120, .55), rgba(255, 200, 120, 0)); filter: blur(4px); }
.hc3 { left: 10%; bottom: 420px; width: 260px; height: 18px; background: linear-gradient(90deg, rgba(200, 120, 255, 0), rgba(200, 120, 255, .45), rgba(200, 120, 255, 0)); filter: blur(6px); }

.topbar {
  position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.logo:hover { color: #FFFFFF; }
.logo-mark {
  font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FF2E88, #FFB000); color: var(--ink);
  padding: 6px 10px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.logo-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.logo-mark.small { font-size: 18px; padding: 5px 9px; border-radius: 9px; border: 0; box-shadow: none; }
.logo-word.small { font-size: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 16px; }
.navlink { color: #FFFFFF; text-decoration: none; font-weight: 500; }
.navlink:hover { color: var(--yellow); }
.neon-chip {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 2px;
  color: var(--teal); border: 2px solid var(--teal); padding: 6px 16px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 0 14px rgba(0, 229, 212, .6), inset 0 0 10px rgba(0, 229, 212, .35);
  text-shadow: 0 0 8px rgba(0, 229, 212, .9);
}

.hero-body {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 48px 32px 260px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-kicker {
  margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  background: rgba(18, 6, 31, .7); border: 2px solid var(--pink);
  padding: 8px 20px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow);
}
.hero-title { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-title-main {
  font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6.4vw, 92px);
  line-height: .95; letter-spacing: -2px; color: #FFFFFF; text-shadow: 5px 5px 0 var(--ink);
}
.hero-title-script {
  font-family: Pacifico, cursive; font-weight: 400; font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.25; padding: 0 8px 8px 0;
}
.hero-title-script.grad {
  background-image: linear-gradient(90deg, #FF7A3D, #FFB000, #FF7A3D);
  background-size: 200% auto;
}
.hero-lead {
  margin: 0; max-width: 540px; font-size: 18px; line-height: 1.55; color: #F3E8FF;
  background: rgba(18, 6, 31, 0.45); border-radius: 18px; padding: 18px 22px;
}
.hero-lead-amber { color: var(--amber); font-weight: 700; }
.hero-lead-teal { color: var(--teal); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

.hero-examples { flex: 1 1 440px; min-width: 300px; position: relative; height: 500px; }
.ex { position: absolute; }
.ex1 { left: 0; top: 30px; width: 300px; }
.ex2 { right: 0; top: 0; width: 280px; }
.ex3 { left: 18%; top: 250px; width: 320px; }
.mini {
  position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 4px;
  border-radius: 22px; background: var(--pink);
  border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
}
.mini img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.pedestal {
  position: absolute; left: 50%; bottom: -54px; width: 72%; height: 54px; margin-left: -36%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pedestal span { display: block; width: 100%; flex: 1 1 auto; border-radius: 4px; }
.pedestal span:nth-child(1) { background: linear-gradient(90deg, #FF8A3D, #FF5E3A); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.pedestal span:nth-child(2) { width: 82%; background: linear-gradient(90deg, #FF5E3A, #FF2E88); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.signpost { position: absolute; right: -10%; bottom: -32%; width: 50%; height: auto; fill: var(--ink); }

/* ---------- Бегущие строки ---------- */
.marquee { position: relative; z-index: 4; overflow: hidden; padding: 28px 0; margin-top: -40px; }
.marquee-band { border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; }
.band-yellow { transform: rotate(-2deg); margin: 0 -40px; background: var(--yellow); box-shadow: 0 8px 0 var(--ink); }
.band-pink { transform: rotate(1.5deg); margin: -6px -40px 0; background: var(--pink); }
.track { display: flex; width: max-content; font-family: var(--display); color: var(--ink); white-space: nowrap; }
.track span { padding-right: 32px; }
.band-yellow .track { padding: 14px 0; font-weight: 900; font-size: 22px; }
.band-pink .track { padding: 10px 0; font-weight: 800; font-size: 16px; }

/* ---------- Мастерская ---------- */
.maker {
  position: relative; padding: 80px 32px 96px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 46, 136, .22), rgba(255, 46, 136, 0) 55%),
    radial-gradient(ellipse at 90% 30%, rgba(0, 229, 212, .16), rgba(0, 229, 212, 0) 50%),
    var(--ink);
}
.maker > .wrap, .how > .wrap { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.script-kicker { margin: 0; font-family: Pacifico, cursive; font-size: 30px; }
.script-kicker.pink { color: var(--pink); }
.script-kicker.teal { color: var(--teal); }
.section-title {
  margin: 0; font-family: var(--display); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1; letter-spacing: -1px;
}

.maker-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.maker-form {
  flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px;
  background: var(--panel); border: 3px solid #3E1A6B; border-radius: 28px; padding: 32px;
  box-shadow: 0 0 0 1px rgba(255, 46, 136, .15), 0 30px 80px rgba(123, 47, 247, .25);
}
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.fhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fhead label, .flabel, .fset legend {
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
.count { font-size: 14px; color: var(--lilac); font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 14px; color: var(--lilac); }
.hint-heart { color: #FF6FAE; }
.hint-name { display: inline-block; color: #FF6FAE; font-weight: 700; transition: opacity .25s ease, transform .25s ease; }
.hint-name.is-swapping { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .hint-name { transition: none; } }

.dropzone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px;
  border-radius: 18px; border: 2px dashed var(--pink); background: rgba(255, 46, 136, .07);
  transition: background .2s ease, border-color .2s ease;
}
.dropzone.is-over { background: rgba(0, 229, 212, .14); border-color: var(--teal); }
.upl { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 14px; gap: 8px; box-shadow: 5px 5px 0 #000000; }
.dropzone-hint { margin: 0; flex: 1 1 180px; font-size: 14px; line-height: 1.4; color: var(--lilac); }

.crop-wrap { display: flex; justify-content: center; padding-top: 6px; }
.crop-canvas {
  width: min(240px, 100%); aspect-ratio: 1; border-radius: 18px;
  border: 3px solid #000000; box-shadow: 6px 6px 0 var(--pink);
  cursor: grab; touch-action: none; background: var(--ink);
}
.crop-canvas:active { cursor: grabbing; }

.zoom-row { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.zoom-row label { font-size: 15px; font-weight: 700; }
.zoom-row input { flex: 1 1 auto; min-height: 44px; min-width: 0; }
.zoom-row input:disabled { opacity: .45; }
.zoom-value {
  min-width: 52px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 14px;
  color: var(--yellow); font-variant-numeric: tabular-nums;
}

.fset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fset legend { padding: 0 0 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: transparent; color: #FFFFFF;
  font: 600 14px var(--body); cursor: pointer; border-radius: 14px;
}
.swatch-chip {
  display: block; width: 64px; height: 48px; border-radius: 14px; border: 3px solid var(--ink);
  outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s ease, transform .15s ease;
}
.swatch:hover .swatch-chip { transform: translateY(-2px); }
.swatch[aria-pressed="true"] .swatch-chip { outline-color: var(--yellow); }
.chip-neon { background: linear-gradient(160deg, #FFB000 0%, #FF5E3A 35%, #FF2E88 65%, #7B2FF7 100%); }
.chip-classic {
  background:
    linear-gradient(90deg, #ff2fa6, #ff8acb) 6px 14px / calc(100% - 12px) 4px no-repeat,
    linear-gradient(180deg, #0d0f1c, #141a2e) 6px 14px / calc(100% - 12px) 22px no-repeat,
    linear-gradient(120deg, #c7cbd3 0 52%, #ecdb93 52% 62%, #3a9fe6 62%);
}

.preview-col { flex: 1.25 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-label { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 2px; color: var(--teal); }
.format-toggle { display: inline-flex; border: 2px solid #4A2380; border-radius: 999px; padding: 3px; gap: 2px; }
.format-toggle button {
  border: 0; background: transparent; color: var(--lilac); cursor: pointer;
  font: 700 14px var(--body); padding: 6px 14px; border-radius: 999px;
}
.format-toggle button[aria-pressed="true"] { background: var(--pink); color: var(--ink); }

.preview-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 32px; overflow: hidden; border: 5px solid #000000;
  box-shadow: 12px 12px 0 #FF2E88, 24px 24px 0 #000000;
  background: var(--panel);
}
.preview-frame.is-square { aspect-ratio: 1; max-width: 560px; align-self: center; }
.preview-frame canvas { display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; }
.preview-frame canvas.over-avatar { cursor: grab; }
.preview-frame canvas.dragging { cursor: grabbing; }

.downloads { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; }
.btn-dl { flex: 1 1 220px; min-height: 60px; padding: 0 22px; font-size: 16px; border-color: #000000; box-shadow: 6px 6px 0 #000000; }
.btn-dl:hover { box-shadow: 8px 8px 0 #000000; }

.tgpack-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tgpack-tab {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px;
  border: 2px solid #3E1A6B; background: var(--panel); color: var(--lilac);
  font: 700 14px var(--body); cursor: pointer;
}
.tgpack-tab[aria-selected="true"] { border-color: var(--teal); color: #FFFFFF; background: #1E0A38; }
.tgpack-tab-close { border: 0; background: none; color: inherit; opacity: .6; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.tgpack-tab-close:hover { opacity: 1; }

.tgpack {
  display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 20px 22px;
  background: var(--panel); border: 3px solid #3E1A6B; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(0, 229, 212, .18), 0 20px 60px rgba(0, 229, 212, .12);
}
.tgpack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tgpack-title { font: 800 16px var(--display); color: #FFFFFF; }
.tgpack-count { font: 700 15px var(--body); color: var(--teal); white-space: nowrap; }
.tgpack-status { margin: 0; font: 400 15px/1.45 var(--body); color: var(--lilac); }
.tgpack-status.is-error { color: var(--pink); }
.tgpack-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tgpack-sticker { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid #3E1A6B; background: #1E0A38; }
.tgpack-sticker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgpack-sticker.is-pending { opacity: .55; }
.tgpack-sticker--no-thumb img { display: none; }
.tgpack-sticker-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #000000; background: var(--pink); color: #12061F; font: 800 12px var(--body);
  line-height: 1; cursor: pointer;
}
.tgpack-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tgpack-btn { flex: 1 1 180px; min-height: 52px; font-size: 15px; border-color: #000000; box-shadow: 5px 5px 0 #000000; }
.tgpack-btn:hover { box-shadow: 7px 7px 0 #000000; }
.tgpack-btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- Как это работает ---------- */
.how { padding: 96px 32px; background: linear-gradient(180deg, #12061F 0%, #2B0B4F 100%); }
.how > .wrap { gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.step {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 34px 30px;
  background: var(--panel); border: 2px solid var(--accent); border-left-width: 6px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transition: box-shadow .2s ease, filter .2s ease;
}
.step:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 30px rgba(255, 255, 255, .1); filter: brightness(1.05); }
.step-num {
  position: absolute; top: 2px; right: 20px; z-index: 0;
  font-family: var(--display); font-weight: 900; font-size: 92px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .4;
  pointer-events: none;
}
.step svg, .step h3, .step p { position: relative; z-index: 1; }
.step h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.step p { margin: 0; font-size: 17px; line-height: 1.5; color: #DCCBF5; }

/* ---------- Футер ---------- */
.footer { padding: 48px 32px 56px; background: #0B0314; border-top: 4px solid var(--pink); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-tag { margin-left: 8px; font-size: 14px; color: var(--lilac); }
.footer-note { margin: 0; max-width: 640px; font-size: 14px; line-height: 1.55; color: var(--lilac); }
.footer-notes { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.footer-mirrors a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-mirrors a:hover { color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  /* На мобильных сначала превью, потом форма. */
  .preview-col { order: -1; }
  .hero-body { padding-bottom: 200px; }
}

@media (max-width: 640px) {
  .topbar { padding: 18px 20px; }
  .nav { gap: 16px; font-size: 15px; }
  .hero { min-height: 0; }
  .hero-body { padding: 24px 20px 170px; gap: 32px; }
  .hero-lead { font-size: 17px; }
  .hero-title-main { letter-spacing: -1px; text-shadow: 3px 3px 0 var(--ink); }
  .btn { font-size: 15px; padding: 0 20px; }
  .hero-examples { min-width: 0; height: 340px; }
  .ex1 { width: 58%; top: 20px; }
  .ex2 { width: 54%; }
  .ex3 { width: 62%; left: 14%; top: 170px; }
  .mini { border-width: 3px; border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); }
  .mini img { border-radius: 12px; }
  .hero-glow { width: 420px; height: 420px; margin-left: -210px; }
  .hero-sun { width: 260px; height: 260px; margin-left: -130px; bottom: 100px; }
  .hero-floor { height: 150px; }
  .hero-glints { width: 280px; margin-left: -140px; padding-top: 8px; }
  .gg1 { width: 250px; }
  .gg2 { width: 205px; }
  .gg3 { width: 170px; }
  .gg4 { width: 130px; }
  .gg5 { width: 100px; }
  .gg6 { width: 70px; }
  .gg7 { width: 45px; }
  .gg8 { width: 22px; }
  .hp1 { height: 280px; left: -6%; }
  .hp2 { height: 180px; left: 12%; }
  .hp3 { height: 300px; right: -6%; }

  .maker { padding: 56px 16px 72px; }
  .maker-grid { gap: 28px; }
  .maker-form { padding: 22px 18px; border-radius: 22px; flex-basis: 100%; }
  .preview-col { flex-basis: 100%; }
  .preview-frame { border-radius: 22px; border-width: 4px; box-shadow: 7px 7px 0 #FF2E88, 14px 14px 0 #000000; }
  .btn-dl { font-size: 14px; }
  .how { padding: 64px 16px; }
  .step { padding: 24px; }
  .footer { padding: 40px 20px 48px; }
}

/* ---------- Идеи, иконка, акцент, фон (как у luciameme.com) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid #4A2380; background: var(--ink); color: #FFFFFF; cursor: pointer;
  font: 700 14px var(--body); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--pink); transform: translateY(-1px); }
.chip-rand { background: var(--pink); border-color: var(--pink); color: var(--ink); }

.seg { display: flex; border: 2px solid #4A2380; border-radius: 14px; overflow: hidden; background: var(--ink); }
.seg button {
  flex: 1; border: 0; background: transparent; color: #FFFFFF; cursor: pointer;
  font: 700 16px var(--body); padding: 10px 8px; min-height: 44px;
}
.seg button + button { border-left: 2px solid #4A2380; }
.seg button:last-child { font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--pink); color: var(--ink); }

.accents { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.accent {
  width: 36px; height: 36px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 3px solid var(--panel); box-shadow: 0 0 0 2px #4A2380;
}
.accent[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--yellow); }
.accent-custom {
  width: 44px; height: 36px; padding: 2px; cursor: pointer;
  border: 2px solid #4A2380; border-radius: 10px; background: var(--ink);
}
.accent-custom.is-active { border-color: var(--yellow); }

.bg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-outline.upl { box-shadow: none; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--pink); }
.toggle-note { color: var(--lilac); font-weight: 400; font-size: 13px; }
@media (hover: none) { .no-touch { display: none; } }

.chip:focus-visible, .seg button:focus-visible, .accent:focus-visible, .accent-custom:focus-visible,
.toggle input:focus-visible, .linkbtn:focus-visible, .tip button:focus-visible, .navlink-btn:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}

/* ---------- Копирование, ссылка, встроенные браузеры ---------- */
.export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.export-status { font-size: 14px; color: var(--teal); min-height: 20px; }
.inapp { margin: 0; font-size: 14px; line-height: 1.45; color: var(--lilac); }
.linkbtn {
  all: unset; cursor: pointer; color: var(--yellow); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
}
.result { display: flex; flex-direction: column; gap: 8px; }
.result-hint { margin: 0; font-size: 14px; color: var(--lilac); }
.result img { width: 100%; height: auto; border-radius: 16px; border: 3px solid #000000; }

.navlink-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Попап «поддержать» ---------- */
.tip {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--panel); border: 3px solid #000000; border-radius: 20px; padding: 18px 18px 16px;
  box-shadow: 8px 8px 0 var(--pink), 0 20px 60px rgba(0, 0, 0, .5);
  font-size: 15px; line-height: 1.45; animation: tipIn .35s ease-out;
}
.tip-text { margin: 0 26px 14px 0; }
.tip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tip-row .btn-yellow { box-shadow: 4px 4px 0 #000000; }
.tip-x {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--lilac); font-size: 22px; cursor: pointer;
}
.tip-x:hover { color: #FFFFFF; }
.tip-crypto { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tip-crypto li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.tip-coin { grid-column: 1 / -1; font: 800 12px var(--display); letter-spacing: .5px; color: var(--yellow); }
.tip-crypto code {
  font-size: 12px; word-break: break-all; color: #FFFFFF;
  background: var(--ink); border-radius: 8px; padding: 6px 8px;
}
.tip-copy {
  border: 2px solid var(--lilac); background: transparent; color: #FFFFFF; border-radius: 10px;
  font: 700 12px var(--body); padding: 6px 10px; cursor: pointer;
}
.tip-copy.is-done { border-color: var(--teal); color: var(--teal); }
@keyframes tipIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tip { animation: none; } }
