@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Wix+Madefor+Display:wght@400;500;600;700;800&display=swap");
:root {
  color-scheme: light;
  --bg: #f7f5fc;
  --card: #fff;
  --elev: #f0ebf8;
  --ink: #2b203b;
  --muted: #736581;
  --hair: #ddd4eb;
  --accent: #7347e8;
  --accent-soft: #eee7ff;
  --accent-ink: #5831b4;
  --amber: var(--accent-ink);
  --cta: #7347e8;
  --ctaink: #fff;
  --mint: #e1f5ee;
  --mint-ink: #24634e;
  --rose: #fceaf1;
  --rose-ink: #99395f;
  --shadow: 0 6px 20px rgb(53 28 86 / 5%);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16111f;
  --card: #21192d;
  --elev: #2d223c;
  --ink: #f5effc;
  --muted: #c1b4cf;
  --hair: #51415f;
  --accent: #b69aff;
  --accent-soft: #37264f;
  --accent-ink: #d3bfff;
  --amber: var(--accent-ink);
  --cta: #7347e8;
  --ctaink: #fff;
  --mint: #19392f;
  --mint-ink: #a2dfc5;
  --rose: #422436;
  --rose-ink: #f6b4cf;
  --shadow: 0 6px 20px rgb(0 0 0 / 12%);
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html { scroll-padding-block: 24px 184px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.shell {
  max-width: 560px;
  margin: auto;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 24px 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--card);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--ctaink);
  font-size: 33px;
  line-height: 32px;
  text-align: center;
  position: relative;
}
.brand-mark span {
  font-size: 16px;
  color: #e4fff3;
  position: absolute;
  right: 0;
  top: -4px;
}
.icon-btn {
  border: 1px solid var(--hair);
  border-radius: 50%;
  height: 44px;
  width: 44px;
  background: var(--card);
  font-size: 21px;
}
main {
  padding: 28px 22px calc(110px + env(safe-area-inset-bottom));
  animation: arrive 0.25s ease;
  min-width: 0;
  overflow-wrap: anywhere;
}
.eyebrow {
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: "Wix Madefor Display", Manrope, sans-serif;
  letter-spacing: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 11px 0 12px;
  font-weight: 800;
}
h2 {
  font-size: 23px;
  margin: 0 0 14px;
}
h3 {
  font-size: 19px;
  margin: 0 0 7px;
}
p {
  line-height: 1.65;
}
.muted,
.lead {
  color: var(--muted);
}
.lead {
  margin: 0 0 22px;
  max-width: 410px;
  font-size: 14px;
}
.service {
  position: relative;
  width: 100%;
  border: 1px solid var(--hair);
  background: var(--card);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 20px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  min-height: 148px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service:hover {
  border-color: var(--accent);
}
.service h2 {
  margin: 9px 0 7px;
  font-size: 25px;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 230px;
}
.service .label {
  font-size: 10px;
  font-weight: 800;
  color: var(--amber);
}
.service[data-start="image"] .label { color: var(--mint-ink); }
.service[data-start="tale"] .label { color: var(--rose-ink); }
.service .art {
  position: relative;
  align-self: center;
  height: 108px;
}
.art img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border: 4px solid var(--card);
  border-radius: 12px;
  position: absolute;
  right: 0;
  transform: rotate(9deg);
}
.art img:first-child {
  right: 33px;
  transform: rotate(-10deg);
  top: 8px;
}
.music-art {
  background: var(--accent-soft);
  border-radius: 16px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 30px;
  color: var(--amber);
}
.music-art small {
  font-size: 11px;
  color: var(--muted);
}
.service .service-art{height:140px;display:grid;place-items:center;min-width:0}
.service .service-art img{position:static;display:block;width:100%;height:100%;max-height:140px;object-fit:contain;border:0;border-radius:0;transform:none;aspect-ratio:1}
.service .service-art img:first-child{position:static;right:auto;top:auto;transform:none}
@media(max-width:360px){.service .service-art{height:112px}.service .service-art img{max-height:112px}}
.price {
  display: inline-block;
  margin-top: 13px;
  font-size: 12px;
  font-weight: 800;
}
.arrow {
  float: right;
  font-size: 18px;
}
.section {
  margin-top: 30px;
}
.tabs,
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.pill,
.chip {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--hair);
  background: var(--card);
  border-radius: 99px;
  font-size: 12px;
}
.pill.selected,
.chip.selected {
  background: var(--cta);
  color: var(--ctaink);
  border-color: var(--cta);
}
.how {
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--card);
  margin-top: 12px;
}
.how div {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  align-items: center;
}
.how b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: var(--elev);
  color: var(--amber);
  font-size: 11px;
}
.how p {
  margin: 0;
  font-size: 12px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 15px 0;
}
.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.samples img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 13px;
}
nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-top: 1px solid var(--hair);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
}
nav button {
  border: 0;
  background: none;
  flex: 1;
  color: var(--muted);
  font-size: 23px;
  min-height: 48px;
}
nav span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
nav button.active {
  color: var(--accent-ink);
}
nav button.active span {
  color: var(--amber);
}
.back {
  border: 0;
  background: none;
  padding: 0;
  min-height: 44px;
  color: var(--muted);
}
.stephead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.stephead span {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}
.progress {
  height: 5px;
  background: var(--elev);
  border-radius: 10px;
  transition: width 200ms ease;
  margin-bottom: 26px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.choice {
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 15px;
  background: var(--card);
  min-height: 59px;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}
.choice.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.choice small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  font-size: 11px;
  margin-top: 5px;
}
.choice--illustrated {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
}
.choice--illustrated.selected {
  padding: 10px;
}
.choice-illustration {
  display: block;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: var(--elev);
}
.choice-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.choice-copy {
  display: block;
  padding: 10px 2px 3px;
}
.choice-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0 8px;
}
input,
select,
textarea {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 13px;
  min-height: 48px;
  padding: 13px;
  outline: 0;
  min-width: 0;
  font-size: 16px;
  accent-color: var(--cta);
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 150px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
.primary,
.secondary {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  border: 0;
  margin-top: 16px;
  text-decoration: none;
  display: block;
  text-align: center;
  overflow-wrap: anywhere;
}
.primary {
  background: var(--cta);
  color: var(--ctaink);
}
.secondary {
  background: var(--card);
  border: 1px solid var(--hair);
  color: var(--ink);
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.scene {
  border: 1px solid var(--hair);
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  background: var(--card);
  text-align: left;
  position: relative;
}
.scene.selected {
  outline: 3px solid var(--accent);
}
.scene img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.scene strong {
  display: block;
  padding: 10px;
  font-size: 11px;
  line-height: 1.4;
}
.scene .check {
  position: absolute;
  top: 9px;
  right: 9px;
  background: var(--cta);
  color: var(--ctaink);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  padding-top: 3px;
}
.uploads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.upload {
  position: relative;
}
.upload img {
  width: 82px;
  height: 100px;
  object-fit: cover;
  border-radius: 13px;
}
.upload button {
  position: absolute;
  top: -5px;
  right: -7px;
  border: 1px solid var(--hair);
  background: var(--card);
  border-radius: 50%;
  min-width: 32px;
  height: 32px;
}
.review,
.result,
.account-card,
.order-card,
.empty {
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
  margin-bottom: 12px;
}
.review div {
  border-bottom: 1px solid var(--hair);
  padding: 12px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.review div:last-child {
  border: 0;
}
.review small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.review .total {
  font-size: 26px;
  font-weight: 800;
}
.result img {
  width: 100%;
  border-radius: 13px;
  display: block;
}
.result p {
  white-space: pre-line;
}
.order-card {
  width: 100%;
  text-align: left;
}
.order-card small {
  display: block;
  color: var(--muted);
  margin: 7px 0;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--amber);
  padding: 5px 9px;
  font-size: 10px;
  border-radius: 99px;
}
.account-card .big {
  font-size: 33px;
  font-weight: 800;
}
audio {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 12px 0;
}
.song-player {
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.song-player:first-of-type { padding-top: 4px; }
.song-player:last-of-type { border-bottom: 0; }
.song-player h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.song-player-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--elev);
  color: var(--amber);
  font-size: 25px;
}
.song-player [hidden] { display: none; }
.song-expired .song-player-icon { color: var(--muted, currentColor); opacity: .55; }
.song-lyrics { margin-top: 14px; border-top: 1px solid var(--hair); padding-top: 14px; }
.song-lyrics summary { cursor: pointer; font-weight: 700; }
.song-lyrics pre { white-space: pre-wrap; font: inherit; line-height: 1.6; margin: 12px 0; max-height: 60vh; overflow: auto; }
.song-player audio:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.error {
  background: var(--rose);
  color: var(--rose-ink);
  border: 1px solid var(--rose-ink);
  border-radius: 13px;
  padding: 13px;
  line-height: 1.6;
  margin: 16px 0;
  font-size: 12px;
}
.loading {
  text-align: center;
  padding: 45px 5px;
  color: var(--muted);
}
.spinner {
  height: 35px;
  width: 35px;
  border: 3px solid var(--hair);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}
.help-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.help-row a {
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 13px 18px;
  border-radius: 15px;
  background: var(--cta);
  color: var(--ctaink);
  font-size: 12px;
  z-index: 99;
}
#toast[hidden] {
  display: none;
}
.counter {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.row {
  display: flex;
  gap: 8px;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.terms {
  display: block;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
label.terms { display:flex; gap:9px; align-items:flex-start; }
.terms input {
  min-height: 20px;
  width: 20px;
  margin: 0;
  flex-shrink: 0;
}
.terms a {
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
}
.payment-choices { min-width:0; margin:20px 0; padding:0; border:0; }
.payment-choices legend { margin-bottom:10px; padding:0; font-size:14px; font-weight:700; line-height:1.5; }
.payment-choices .payment-choice { display:flex; align-items:flex-start; gap:12px; min-height:56px; margin:10px 0; padding:14px; border:1px solid var(--hair); border-radius:12px; background:var(--card); color:var(--ink); cursor:pointer; transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.payment-choice input[type="radio"] { width:18px; height:18px; min-height:18px; flex:0 0 18px; padding:0; margin:2px 0 0; accent-color:var(--cta); }
.payment-choice>span { display:block; min-width:0; overflow-wrap:anywhere; }
.payment-choice strong { display:block; font-size:14px; font-weight:700; line-height:1.5; }
.payment-choice small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:500; line-height:1.6; }
.payment-choices .payment-choice:has(input:checked) { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); background:var(--accent-soft); }
.payment-choice:focus-within { outline:3px solid var(--accent); outline-offset:3px; }
.divider {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 22px 0;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .service {
    padding: 16px;
    grid-template-columns: 1fr 95px;
  }
  .service h2 {
    font-size: 22px;
  }
  h1 {
    font-size: 30px;
  }
  .choices {
    gap: 7px;
  }
  .choice {
    padding: 12px;
  }
  .choice--illustrated {
    padding: 8px;
  }
  .choice--illustrated.selected {
    padding: 8px;
  }
}
main:has(#next) {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}
#next {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: 100%;
  z-index: 15;
  margin-top: 24px;
  box-shadow: 0 0 0 8px var(--bg);
}
main:has(.choice--illustrated),
main:has(.photo-wizard) {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}
main:has(.choice--illustrated) #next,
main:has(.photo-wizard) #next {
  position: static;
  transform: none;
  width: 100%;
  margin-top: 22px;
  box-shadow: none;
}
.choice[hidden] { display: none; }
#option-search { margin: 0 0 15px; }
.wizard-hero {
  display: grid; place-items: center; height: 170px; margin: 4px 0 22px;
  background: var(--elev); border-radius: 16px; overflow: hidden;
}
.wizard-hero img { display: block; width: 100%; height: 100%; object-fit: contain; }
.instrument-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.instrument-option { display: flex; flex-direction: column; position: relative; margin: 0; padding: 10px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); cursor: pointer; }
.instrument-option img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 9px; background: var(--elev); }
.instrument-option span { display: block; padding: 10px 28px 3px 2px; line-height: 1.4; font-size: 13px; }
.instrument-option input { position: absolute; right: 11px; bottom: 12px; width: 19px; height: 19px; margin: 0; accent-color: var(--accent); }
.instrument-option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.instrument-option:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 360px) { .wizard-hero { height: 150px; } }
/* Спільний профіль, баланс і галерея. */
.filter-tabs{display:flex;gap:6px;overflow-x:auto;margin:20px 0;padding:5px;border-radius:14px;background:var(--elev)}
.filter-tabs button{flex:1;white-space:nowrap;border:0;border-radius:10px;background:transparent;padding:12px 10px;font-weight:700;min-height:44px}
.filter-tabs button.active{background:var(--card);box-shadow:0 1px 4px #0001}
.wallet-card{background:var(--card);border-top:4px solid var(--accent)}
.credit-line{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px;padding-top:20px;border-top:1px solid var(--hair)}
.credit-line strong{font-size:24px}
.profile-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-categories button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:14px 10px;border:1px solid var(--hair);border-radius:14px;background:var(--bg)}
.profile-categories span{font-size:28px;font-weight:700}.profile-categories small{color:var(--muted);font-size:11px}
.amount-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.amount-grid button{background:var(--elev);border:1px solid var(--hair);border-radius:12px;padding:14px;font-weight:700;min-height:48px;overflow-wrap:anywhere}
.money-history button{width:100%;text-align:left;display:flex;justify-content:space-between;gap:12px;padding:15px 0;background:transparent;border:0;border-bottom:1px solid var(--hair)}
.money-history span{display:flex;flex-direction:column;gap:5px}.money-history small{color:var(--muted)}.money-history strong{white-space:nowrap}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-item{min-width:0}.gallery-item .order-card{height:100%;margin:0;text-align:left;overflow:hidden;min-width:0;width:100%}.gallery-item h3{overflow-wrap:anywhere;font-size:16px}.gallery-thumb{display:block;width:calc(100% + 40px);max-width:none;margin:-20px -20px 18px;aspect-ratio:2/3;object-fit:cover;background:var(--elev)}
.gallery-item:has(.compare-check) .order-card{height:calc(100% - 44px);border-radius:16px 16px 0 0}.compare-check{display:flex;align-items:center;gap:6px;padding:10px;min-height:44px;background:var(--card);margin:0;font-size:11px;border-radius:0 0 16px 16px}.compare-check input,.instrument input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:var(--cta)}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.compare-grid figure{margin:0;min-width:0}.compare-grid img{width:100%;border-radius:14px;aspect-ratio:2/3;object-fit:contain;background:var(--elev)}.compare-grid figcaption{margin:10px 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
summary{cursor:pointer;font-weight:700;line-height:1.6}.instrument-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.instrument{display:flex;align-items:center;gap:8px;margin:0;background:var(--card);padding:10px;border:1px solid var(--hair);border-radius:12px;font-size:12px}
@media(max-width:350px){.gallery-grid{gap:8px}.gallery-item .order-card{padding:14px}.gallery-thumb{width:calc(100% + 28px);margin:-14px -14px 14px}.profile-categories button{padding:12px 8px}.filter-tabs button{padding:10px 8px;font-size:12px}}
.gallery-item:not(:has(.gallery-thumb)){grid-column:1 / -1}.gallery-item:not(:has(.gallery-thumb)) .order-card{height:auto;min-height:140px}.gallery-item:not(:has(.gallery-thumb)) h3{font-size:18px}
#view > .back{display:block;margin-bottom:20px}
.scene-grid > .result{min-width:0}
.scene-grid > .result img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
@media (hover: hover) {
  .choice:not(:disabled):hover,
  .secondary:not(:disabled):hover,
  .pill:not(:disabled):hover,
  .chip:not(:disabled):hover { border-color: var(--accent); }
  .primary:not(:disabled):hover { background: #6033ce; }
}
.primary:active:not(:disabled) { background: #5831b4; }

/* Головна студії: три основні формати ближче до першого екрана. */
.studio-intro { position: relative; padding: 0 0 2px; }
.studio-intro h1 { font-size: clamp(27px, 7.3vw, 34px); line-height: 1.15; }
.studio-intro h1 span { color: var(--accent-ink); }
.studio-intro .lead { margin-bottom: 22px; line-height: 1.55; font-size: 13px; }
.service-list { display: grid; gap: 12px; }
.service-list .service {
  --service-tint: var(--accent-soft);
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  min-height: 148px;
  margin: 0;
  padding: 17px;
  border-radius: 22px;
  background: linear-gradient(115deg, var(--card) 54%, var(--service-tint));
  box-shadow: 0 5px 18px rgb(53 28 86 / 4%);
}
.service-list .service[data-start="image"] { --service-tint: var(--mint); }
.service-list .service[data-start="stickers"] { --service-tint: var(--rose); }
.service-list .service h2 { font-size: clamp(20px, 5.7vw, 26px); line-height: 1.2; margin: 6px 0; }
.service-list .service p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; }
.service-list .service .label { font-size: 9px; }
.service-list .service .price { font-size: 12px; margin-top: 0; }
.service-list .service .art { width: 86px; height: 100px; }
.service-list .service .service-art img { width: 100%; height: 100%; object-fit: contain; }
.service-list .service[data-start="tale"] .art img { width: 58px; height: 82px; border-width: 3px; }
.service-list .service[data-start="tale"] .art img:first-child { right: 24px; }
.resume-draft { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 18px; padding: 14px 16px; }
.resume-draft span { color: var(--muted); font-size: 11px; }
.resume-draft strong { font-size: 13px; }
@media (hover: hover) {
  .service-list .service:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgb(73 38 124 / 10%); }
}
@media (max-width: 350px) {
  .service-list .service { padding: 14px; grid-template-columns: minmax(0, 1fr) 68px; }
  .service-list .service .art { width: 68px; height: 90px; }
  .service-list .service h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Перегляд фото на весь екран: завжди є «✕», тап по фону й «Назад» Telegram закривають (2026-10-29). */
body.viewer-open { overflow:hidden; }
.image-viewer { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:calc(env(safe-area-inset-top,0px) + 56px) 16px calc(env(safe-area-inset-bottom,0px) + 20px); background:rgba(12,8,20,.92); }
.image-viewer img { max-width:100%; max-height:calc(100% - 72px); object-fit:contain; border-radius:16px; box-shadow:0 18px 50px rgba(0,0,0,.45); }
.image-viewer-close { position:absolute; top:calc(env(safe-area-inset-top,0px) + 12px); right:12px; width:44px; height:44px; border:0; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-size:20px; cursor:pointer; }
.image-viewer-close:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.image-viewer-download { width:min(100%,360px); }
#resultimage, [data-result-photo] { cursor:zoom-in; }

/* «Що ще створити» під готовим результатом (06.11). */
.more-create { margin-top:22px; }
.more-create h2 { font-size:19px; margin:0 0 12px; }
.more-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.more-card { display:grid; gap:8px; padding:8px 8px 12px; border:1px solid var(--hair,#ddd4eb); border-radius:16px; background:var(--card,#fff); color:inherit; text-align:left; cursor:pointer; min-width:0; }
.more-card img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:11px; display:block; }
.more-card span { display:grid; gap:2px; padding:0 4px; min-width:0; }
.more-card b { font-size:15px; }
.more-card small { font-size:12px; color:var(--muted,#736581); overflow-wrap:anywhere; }
.more-card:hover { border-color:var(--accent,#7347e8); }
.more-card:focus-visible { outline:3px solid var(--accent,#7347e8); outline-offset:2px; }
