@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope-cyr.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Playfair;
  src: url(/fonts/playfair-cyr.woff2) format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  --base: #faf8f5;
  --ink: #211a34;
  --muted: #5b5267;
  --footer: #211a34;
  --pink: #e77d9e;
  --violet: #382767;
  --radius: 32px;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  background: var(--base);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
  background: var(--footer);
  -webkit-text-size-adjust: 100%;
}
.main-surface {
  background: var(--base);
}
.wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7945ab;
  outline-offset: 3px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.067em;
  word-spacing: 0.025em;
  font-weight: 800;
  line-height: 1;
  font-size: 33px;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f2b7c8;
  margin-right: 8px;
  display: grid;
  place-items: center;
  transform: rotate(-9deg);
}
.brand-mark svg {
  width: 17px;
  height: 17px;
  fill: #281b3d;
}
.brand-dot {
  color: #cc577d;
}
.header nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
  color: #50465e;
  font-size: 13px;
}
.header nav a:hover,
.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  min-height: 51px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-2px);
}
.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}
.button-outline {
  min-height: 42px;
  border-color: #ded6e4;
  background: transparent;
  color: var(--ink);
  padding: 0 16px;
}
.button-outline:hover {
  background: #eee7f3;
}
.button-primary {
  background: var(--ink);
  color: #fff;
}
.button-primary:hover {
  background: #4b3069;
}
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: #ccd2fb;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 45%, #e3e2ff, transparent 42%),
    linear-gradient(160deg, #d5dbff, #babcfa 70%, #eee4fd);
}
.hero-art picture,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.hero-art img:not([src]) {
  display: none;
}
.hero-content {
  padding: 60px clamp(38px, 5.1vw, 80px) 67px;
  position: relative;
  z-index: 1;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(51px, 5.6vw, 85px);
  line-height: 0.99;
  letter-spacing: -0.068em;
  word-spacing: 0.025em;
  margin-bottom: 26px;
  font-weight: 800;
}
h1 em {
  font-family: Playfair, Georgia, serif;
  letter-spacing: -0.064em;
  color: #4c387d;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}
.hero-copy {
  font-size: 17px;
  font-weight: 600;
  color: #42374e;
  max-width: 355px;
  line-height: 1.6;
  margin: 0 0 27px;
}

.formats {
  padding: 65px 0 72px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 26px;
}
.section-heading h2,
.studio-inner h2 {
  font-size: clamp(39px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.085em;
  margin: 0;
  font-weight: 800;
}
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.format {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: 260px;
  border-radius: 27px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.format-song {
  background: #ece6ff;
}
.format-card {
  background: #ffe7e7;
}
.format-copy {
  z-index: 1;
  width: min(100%, 280px);
}
.format h3 {
  font-size: 34px;
  letter-spacing: -0.075em;
  margin: 0 0 5px;
  line-height: 1.1;
}
.format p,
.steps p {
  color: #51445b;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  font-weight: 600;
}
.format-action {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  min-height: 44px;
}
.format-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.format-action .icon {
  width: 17px;
  height: 17px;
}
.format-art {
  position: absolute;
  z-index: -1;
  right: 5%;
  top: 22%;
  width: 31%;
  aspect-ratio: 1;
  pointer-events: none;
}
.record-art i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #3a265d 0 2px,
    #493267 3px 4px,
    #3b285c 5px 7px
  );
  box-shadow: 9px 13px 24px #65428a44;
}
.record-art b {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #382767 0 3px,
    #b69aef 4px 57%,
    #a387df 58%
  );
}
.postcard-art {
  transform: rotate(11deg);
  top: 27%;
  right: 4%;
  width: 32%;
}
.postcard-art i,
.postcard-art b {
  position: absolute;
  inset: 1% 0 22%;
  border-radius: 8px;
  background: #f6a5b6;
  box-shadow: 5px 11px 23px #ae446537;
  transform: rotate(-14deg);
}
.postcard-art b {
  inset: 3% 3% 20%;
  transform: rotate(9deg) translate(0, -4%);
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    135deg,
    #fdf6e9,
    #fdf6e9 12px,
    #ffece5 12px,
    #ffece5 24px
  );
  box-shadow: 3px 5px 12px #ae446532;
}
.postcard-art svg {
  width: 27%;
  height: 48%;
  fill: #da648c;
}
.how {
  padding: 12px 0 79px;
}
.steps {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  border-top: 1px solid #ded4de;
  padding: 21px 18px 0 0;
}
.steps h3 {
  letter-spacing: -0.055em;
  font-size: 24px;
  margin: 0 0 7px;
  line-height: 1.18;
}
.footer {
  background: var(--footer);
  color: #f8f0ff;
}
.footer-inner {
  padding: 33px 0 calc(33px + env(safe-area-inset-bottom));
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-link {
  margin: 0;
  color: #e4d8ee;
  font-size: 13px;
  font-weight: 600;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 28px;
  width: min(580px, calc(100% - 26px));
  max-height: calc(100svh - 26px);
  overflow: auto;
  background: #faf8f5;
  color: var(--ink);
  box-shadow: 0 24px 90px #211a3455;
}
dialog::backdrop {
  background: #25193880;
}
html:has(dialog[open]) {
  overflow: hidden;
}
.studio-inner {
  padding: 29px clamp(20px, 5vw, 39px) 35px;
}
.studio-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.studio-top .close {
  border: 0;
  background: #eee6f3;
  color: var(--ink);
  padding: 0 0 3px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}
.studio-inner h2 {
  font-size: clamp(29px, 5.7vw, 41px);
}
.switcher {
  display: flex;
  gap: 7px;
  padding: 5px;
  background: #eee7f1;
  border-radius: 15px;
  margin-bottom: 20px;
}
.switcher button {
  width: 50%;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
}
.switcher button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 5px #22163315;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  min-width: 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #dcd1e0;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 16px;
  min-height: 44px;
}
textarea {
  resize: vertical;
}
.mode-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 15px;
}
.submit {
  width: 100%;
}
#feedback:not(:empty) {
  padding-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #5b3c71;
  line-height: 1.5;
}
#feedback.error {
  color: #a32750;
}
#result {
  border: 1px solid #e1d7e8;
  background: #f2ebf8;
  padding: 17px;
  border-radius: 16px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
#result p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
#result img,
#result audio {
  width: 100%;
}
#result img {
  display: block;
  border-radius: 9px;
  max-height: 280px;
  object-fit: contain;
  margin-bottom: 12px;
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-actions .button {
  min-height: 42px;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 54px);
  }
  .hero {
    min-height: 490px;
  }
  .hero-content {
    padding-left: 45px;
  }
  .format-copy {
    width: 65%;
  }
  .format-art {
    right: 4%;
    top: 31%;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .header {
    height: 66px;
    gap: 10px;
  }
  .header nav {
    display: none;
  }
  .brand {
    font-size: 30px;
  }
  .hero {
    min-height: 0;
    display: block;
    border-radius: 24px;
    text-align: center;
  }
  .hero-content {
    padding: 38px 13px 0;
  }
  .hero-art {
    top: auto;
    bottom: 0;
    height: 56%;
    background: linear-gradient(180deg, #ccd2fb, #c4c7f5 42%, #e4ddf9);
  }
  .hero-art picture,
  .hero-art img {
    object-fit: contain;
    object-position: center bottom;
  }
  .hero-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#ccd2fb 0%, #ccd2fb00 21%);
  }
  .hero:after {
    content: "";
    display: block;
    height: clamp(226px, 65vw, 330px);
  }
  .hero h1 {
    font-size: clamp(38px, 10.5vw, 66px);
    margin-bottom: 14px;
    letter-spacing: -0.07em;
  }
  .hero-copy {
    font-size: 14px;
    margin: 0 auto 18px;
    max-width: 270px;
  }
  .formats {
    padding: 45px 0 54px;
  }
  .section-heading {
    display: block;
    margin-bottom: 20px;
  }
  .formats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .format {
    padding: 21px;
    min-height: 211px;
    border-radius: 22px;
  }
  .format h3 {
    font-size: 30px;
  }
  .format p {
    font-size: 13px;
  }
  .format-action {
    margin-top: 14px;
  }
  .format-art {
    top: 29%;
  }
  .how {
    padding: 0 0 50px;
  }
  .steps {
    grid-template-columns: 1fr;
    margin: 22px 0 0;
    gap: 20px;
  }
  .steps li {
    padding-top: 14px;
  }
  .steps h3 {
    margin: 5px 0 5px;
  }
  .field-pair {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}
@media (min-width: 681px) {
  .hero-art {
    background: linear-gradient(147deg, #c5c8f6, #d4d5fc);
  }
  .hero-art picture {
    left: auto;
    width: 85%;
    mask-image: linear-gradient(to right, transparent, #000 26%);
  }
}
@media (min-width: 681px) and (max-width: 970px) {
  .hero-art picture {
    width: 78%;
    mask-image: linear-gradient(to right, transparent 10%, #000 55%);
  }
  .hero h1 {
    font-size: clamp(45px, 5.8vw, 57px);
  }
}
