/* Файл собран tools/build-css.py из design/magic.css — правьте там. */
/* ——— Общие отступы сайта: сброс ———
   В globals.css у section свои поля (clamp 56–96px) и разделительная линия
   между соседями — внутри раздела они складываются с его собственными и
   рвут ритм. Сброс стоит в начале файла намеренно: правила пакета идут
   ниже, а :where() снимает вес класса раздела — поэтому любое собственное
   правило пакета сильнее этого сброса и свои отступы секций сохраняет. */
.magic-page :where(section) { padding: 0; }
.magic-page :where(section + section) { border-top: 0; }

/* ФОКУСНИКИ · MAGIC-02 (пакет от 9 сентября 2026).
   Своя композиция раздела: три расстояния до события, истории выступлений,
   рабочий кабинет артиста. Классы с префиксом .mg-, область ограничена
   `.vu-module.magic-page`.

   Из пакета выброшены его собственные ресеты: @font-face Onest (шрифт
   подключён глобально), правила html/body/* — они у нас свои и в пакете
   переопределяли общую страницу. */
.mg-skip {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 200;
  background: white;
  color: #682c3b;
  padding: 12px;
}
.mg-skip:focus {
  top: 10px;
}
.magic-page {
  --wine: #682c3b; --accent-ink: #fff;
  --ink: #242223;
  --muted: #6d686b;
  --soft: #f6f5f5;
  --line: #ddd9db;
  line-height: 1.6;
  background: #fff;--bg:#FFFFFF;--surface:#FFFFFF;--surface-2:#F5F3F1;--surface-3:#F1EDEB;--line-strong:#968C88;--accent:#682C3B;--accent-fill:var(--accent);--accent-fill-hover:var(--accent-hover);--accent-soft:#F3E9EC;--accent-hover:#4B1C29;--ok:#2E6B45;--warn:#A8561A;--danger:#8C2F2F;--ph-a:#CFCAC0;--ph-b:#8A8378;--shadow-float:0 1px 2px rgba(36,34,35,.06), 0 12px 32px rgba(36,34,35,.10);}
.magic-page button {
  font-synthesis: weight;
}
.magic-page h1,
.magic-page h2,
.magic-page h3 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.magic-page h1 {
  font-size: clamp(2.75rem, 5.05vw, 4.5rem);
  line-height: 1.05;
}
.magic-page h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.13;
}
.magic-page h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}
.magic-page p {
  font-size: 1rem;
}
.magic-page em {
  letter-spacing: -0.025em;
}
.magic-page .vu-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}
.mg-wrap {
  width: min(1320px, 91%);
  margin-inline: auto;
}
.mg-section {
  padding-block: 88px;
  scroll-margin-top: 24px;
}
.mg-main {
  animation: mg-enter 0.42s ease both;
}
.mg-eyebrow {
  display: block;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--wine);
}
.mg-section-title {
  display: grid;
  grid-template-columns: 45px 1.3fr 1fr;
  align-items: start;
  gap: 20px;
  margin-bottom: 38px;
}
.mg-section-title p {
  max-width: 380px;
  color: var(--muted);
  padding-top: 5px;
}
.mg-section-no {
  font-size: 0.875rem;
  border-top: 1px solid var(--wine);
  padding-top: 9px;
  margin-top: 5px;
  color: var(--wine);
}
.mg-link,
.mg-back {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 10px 0;
  text-align: left;
  color: var(--wine) !important;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
}
.mg-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.mg-link span,
.vu-button > span {
  transition: transform 0.25s;
}
.mg-link:hover span,
.vu-button:hover > span {
  transform: translate(2px, -2px);
}
.mg-back {
  color: var(--ink) !important;
}
.mg-back:hover {
  color: var(--wine) !important;
}
.magic-page .vu-button {
  border-radius: 3px;
  min-height: 54px;
  font-size: 0.9375rem;
  padding: 15px 22px;
}
.magic-page .vu-field {
  font-size: 0.875rem;
  gap: 8px;
}
.magic-page .vu-field input,
.magic-page .vu-field select,
.magic-page .vu-field textarea {
  min-height: 50px;
  background: #fff;
  border-color: var(--line);
  border-radius: 3px;
  font-size: 1rem;
}
.magic-page .vu-field textarea {
  padding: 14px;
  resize: vertical;
}
.magic-page .vu-field small {
  font-size: 0.8125rem;
}
.magic-page .vu-check {
  font-size: 0.9375rem;
  align-items: flex-start;
  gap: 12px;
}
.magic-page .vu-check input {
  accent-color: var(--wine);
  min-width: 18px;
  margin-top: 5px;
}
.mg-demo-bar {
  padding: 13px 4.5%;
  background: #f6f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e5e2e4;
}
.mg-demo-bar > span {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mg-demo-bar b {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--wine);
}
.mg-demo-bar small {
  font-size: 0.75rem;
}
.mg-demo-bar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mg-demo-bar button {
  border: 0;
  padding: 7px 10px;
  background: transparent;
  font-size: 0.8125rem;
}
.mg-demo-bar button[aria-current] {
  background: #fff;
  box-shadow: 0 1px 4px #24222312;
  color: var(--wine);
  border-radius: 3px;
}
.mg-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 4%;
  padding-top: 42px;
  padding-bottom: 48px;
  align-items: center;
  min-height: 610px;
}
.mg-hero-copy {
  padding-block: 28px;
  position: relative;
  z-index: 1;
}
.mg-hero h1 {
  margin: 29px 0 23px;
}
.mg-hero-copy > p {
  max-width: 370px;
  line-height: 1.75;
  color: var(--muted);
  font-size: 1.0625rem;
}
.mg-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.mg-hero-note {
  margin-top: 47px;
  display: flex;
  align-items: center;
  gap: 23px;
}
.mg-hero-note > span {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--line);
  padding: 14px 24px 14px 0;
  color: var(--wine);
}
.mg-hero-note p {
  font-size: 0.875rem;
  color: var(--muted);
}
.mg-hero-visual {
  height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  isolation: isolate;
}
.mg-hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.mg-hero-visual:after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #1c151dc9);
  z-index: 0;
}
.mg-hero-visual figcaption {
  position: absolute;
  left: 34px;
  bottom: 35px;
  z-index: 1;
  color: #fff;
}
.mg-hero-visual figcaption > span {
  font-size: 1rem;
  display: block;
}
.mg-hero-visual figcaption > strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1.25;
  display: block;
  margin-top: 5px;
}
.mg-image-index {
  position: absolute;
  right: 22px;
  top: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
  color: #fff;
  text-shadow: 0 1px 6px #0009;
}
.mg-distance {
  border-top: 1px solid var(--line);
}
.mg-distance-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.mg-distance-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 18px 18px 23px 0;
  gap: 5px 14px;
  text-align: left;
  color: var(--muted);
}
.mg-distance-tabs button > span {
  grid-row: 1/3;
  font-size: 0.8125rem;
  padding-top: 5px;
}
.mg-distance-tabs button > b {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
}
.mg-distance-tabs button > small {
  font-size: 0.875rem;
}
.mg-distance-tabs button[aria-pressed='true'] {
  border-bottom-color: var(--wine);
  color: var(--wine);
}
.mg-distance-tabs button[aria-pressed='true'] > small {
  color: var(--wine);
}
.mg-scene {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: #242223;
  color: #fff;
  border-radius: 3px;
  overflow: hidden;
  animation: mg-enter 0.35s ease;
}
.mg-scene-photo {
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.mg-scene-photo > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.mg-scene-caption {
  position: absolute;
  bottom: 24px;
  left: 26px;
  background: #fff;
  padding: 9px 17px;
  color: var(--ink);
  font-size: 0.8125rem;
}
.mg-scene-copy {
  padding: 42px 46px;
}
.mg-scene-copy .mg-eyebrow {
  color: #d6b3bf;
}
.mg-scene-copy h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  margin: 22px 0 18px;
}
.mg-scene-copy > p {
  color: #d4cfd2;
}
.mg-scene-copy dl {
  margin: 25px 0 30px;
  display: grid;
  gap: 18px;
}
.mg-scene-copy dt {
  font-size: 0.8125rem;
  color: #b4a8af;
  margin-bottom: 4px;
}
.mg-scene-copy dd {
  font-size: 0.9375rem;
  margin: 0;
}
.mg-scene-copy .vu-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #817079;
}
.mg-scene-copy .vu-secondary:hover {
  background: #342c32;
}
.mg-directory {
  background: #f6f5f5;
}
.mg-filters {
  background: #fff;
  padding: 24px 28px;
  border: 1px solid var(--line);
}
.mg-filter-main {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.1fr 0.95fr;
  gap: 20px;
  align-items: end;
}
.mg-filter-main .vu-field {
  margin: 0;
}
.mg-filter-more {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  min-height: 50px;
  padding: 12px 0;
  font-size: 0.875rem;
}
.mg-filter-extra {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  align-items: center;
}
.mg-filter-extra .vu-field {
  max-width: 320px;
}
.mg-result-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.mg-result-line b {
  color: var(--ink);
}
.mg-result-line > span:last-child {
  font-size: 0.8125rem;
}
.mg-artist {
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.mg-artist-photo {
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  align-self: start;
}
.mg-artist-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s;
}
.mg-artist-photo > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #242223c9;
  color: #fff;
  padding: 15px 20px;
  font-size: 0.875rem;
}
.mg-artist-photo:hover img {
  transform: scale(1.025);
}
.mg-artist-main {
  padding-top: 7px;
}
.mg-artist-main h3 {
  margin: 15px 0 12px;
}
.mg-artist-main h3 button {
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.mg-artist-main h3 span {
  font-size: 1.3rem;
  color: var(--wine);
}
.mg-artist-tagline {
  font-size: 1.125rem !important;
}
.mg-artist-description {
  font-size: 0.875rem !important;
  color: var(--muted);
  margin-top: 18px !important;
  max-width: 450px;
}
.mg-artist-formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}
.mg-artist-formats > span {
  font-size: 0.8125rem;
  padding: 5px 10px;
  background: #ebe6e8;
  border-radius: 2px;
}
.mg-artist-offers {
  padding: 8px 0 0 26px;
  border-left: 1px solid var(--line);
}
.mg-artist-offers button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 17px 0 20px;
  width: 100%;
}
.mg-artist-offers button > span:first-child {
  font-size: 0.9375rem;
  grid-column: 1/3;
}
.mg-artist-offers button > b {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 5px;
}
.mg-artist-offers button > small {
  font-size: 0.8125rem;
  grid-column: 1;
  grid-row: 3;
}
.mg-artist-offers button > span:last-child {
  grid-column: 2;
  grid-row: 2/4;
  align-self: center;
  font-size: 1.3rem;
  color: var(--wine);
}
.mg-artist-offers button:hover > span:first-child {
  color: var(--wine);
}
.mg-questions {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 10%;
}
.mg-questions h2 {
  margin: 20px 0 20px;
  max-width: 360px;
}
.mg-questions > div > p {
  color: var(--muted);
  max-width: 340px;
}
.mg-questions .vu-faq {
  margin: 0;
  padding: 0;
  border: 0;
}
.mg-questions .vu-faq details:first-of-type {
  border-top: 1px solid var(--line);
}
.mg-questions summary {
  font-size: 1.0625rem !important;
}
.mg-partner {
  padding: 45px 0 65px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.mg-partner h2 {
  font-size: 2.2rem;
  margin: 18px 0;
}
.mg-partner p {
  color: var(--muted);
  max-width: 480px;
}
.mg-footer {
  padding: 48px 4.5% 25px;
  background: #242223;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.mg-footer button {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: 1.5rem;
  text-align: left;
}
.mg-footer button span {
  margin-left: 30px;
  color: #d6b3bf;
}
.mg-footer p {
  color: #c5bfc3;
  margin-top: 12px !important;
  font-size: 0.875rem;
}
.mg-footer nav {
  display: grid;
  gap: 12px;
  font-size: 0.875rem;
}
.mg-footer nav a {
  color: #fff;
  text-decoration: none;
}
.mg-footer nav a:hover {
  text-decoration: underline;
}
.mg-footer > small {
  grid-column: 1/-1;
  border-top: 1px solid #62585e;
  padding-top: 22px;
  color: #c5bfc3;
  font-size: 0.8125rem;
}
.mg-profile-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  padding-bottom: 25px;
}
.mg-profile-breadcrumb > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.mg-profile-hero {
  display: grid;
  grid-template-columns: 0.77fr 1.1fr;
  gap: 8%;
  padding-bottom: 60px;
  align-items: center;
}
.mg-profile-hero figure {
  position: relative;
}
.mg-profile-hero figure > img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 3px;
}
.mg-profile-hero figcaption {
  position: absolute;
  bottom: 20px;
  left: 22px;
  right: 22px;
  background: #fff;
  padding: 13px 17px;
  font-size: 0.8125rem;
  text-align: center;
}
.mg-profile-intro h1 {
  margin: 25px 0 23px;
  font-size: clamp(3rem, 5.6vw, 5rem);
}
.mg-profile-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--wine);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
  line-height: 1.3;
  max-width: 530px;
}
.mg-profile-description {
  display: flex;
  gap: 18px;
  margin: 30px 0;
  max-width: 500px;
  color: var(--muted);
}
.mg-profile-description > span {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.95;
  color: var(--wine);
}
.mg-profile-description p {
  font-size: 0.9375rem;
}
.mg-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.mg-profile-actions > span {
  font-size: 0.875rem;
  color: var(--muted);
}
.mg-profile-nav {
  display: flex;
  justify-content: center;
  gap: 60px;
  border-block: 1px solid var(--line);
  padding: 4px 0;
}
.mg-profile-nav button {
  padding: 18px 0;
  border: 0;
  background: transparent;
  font-size: 0.9375rem;
}
.mg-profile-nav button:hover {
  color: var(--wine);
}
.mg-story-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 38px;
  align-items: start;
}
.mg-story {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.mg-story:nth-child(even) {
  margin-top: 85px;
}
.mg-story-photo {
  position: relative;
  overflow: hidden;
}
.mg-story-photo > img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mg-story:nth-child(even) .mg-story-photo > img {
  aspect-ratio: 1;
}
.mg-story:hover img {
  transform: scale(1.025);
}
.mg-photo-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  background: #fff;
  display: flex;
  gap: 18px;
  font-size: 0.8125rem;
}
.mg-story-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 15px;
  padding: 22px 0;
}
.mg-story-copy > small {
  grid-column: 1/3;
  font-size: 0.8125rem;
}
.mg-story-copy h3 {
  font-size: 1.5rem;
  max-width: 370px;
}
.mg-story-copy > span {
  font-size: 0.8125rem;
  white-space: nowrap;
  align-self: end;
  color: var(--wine);
}
.mg-story-copy > span > span {
  padding-left: 15px;
}
.mg-manifesto {
  background: #682c3b;
  color: white;
  padding: 70px 0;
}
.mg-manifesto .mg-wrap {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 24px 7%;
}
.mg-manifesto .mg-eyebrow {
  color: #ead8df;
  max-width: 200px;
  padding-top: 5px;
}
.mg-manifesto blockquote {
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  font-family: Georgia, serif;
  line-height: 1.28;
  max-width: 740px;
}
.mg-manifesto .mg-wrap > span:last-child {
  grid-column: 2;
  font-size: 0.875rem;
  color: #ead8df;
}
.mg-calc-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 6%;
  align-items: start;
}
.mg-calc-step {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  margin-bottom: 32px;
}
.mg-calc-step > header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.mg-calc-step > header > span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 50%;
  font-size: 0.875rem;
  text-align: center;
  line-height: 28px;
}
.mg-calc-step > header h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.mg-program-choices {
  display: grid;
  gap: 10px;
}
.mg-program-choices > button {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 19px 20px;
  background: #fff;
  text-align: left;
}
.mg-program-choices > button.selected {
  background: #fbf7f8;
  border-color: var(--wine);
}
.mg-program-choices button b {
  font-size: 0.9375rem;
  font-weight: 500;
  display: block;
}
.mg-program-choices button small {
  font-size: 0.8125rem;
  display: block;
  margin-top: 4px;
}
.mg-program-choices button > strong {
  font-size: 0.9375rem;
  white-space: nowrap;
  font-weight: 500;
}
.mg-radio {
  width: 17px;
  height: 17px;
  border: 1px solid #99858f;
  border-radius: 50%;
  position: relative;
}
.selected .mg-radio {
  background: var(--wine);
  box-shadow: inset 0 0 0 4px #fff;
}
.mg-chosen-program {
  padding: 24px 0 0;
}
.mg-chosen-program > p {
  margin: 15px 0 !important;
  color: var(--muted);
  font-size: 0.9375rem;
}
.mg-includes {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  margin: 18px 0 25px;
}
.mg-includes li {
  padding-left: 22px;
  position: relative;
}
.mg-includes li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wine);
  font-size: 0.875rem;
}
.mg-schedule {
  background: #f6f5f5;
  padding: 22px 24px;
  border-radius: 3px;
}
.mg-schedule-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.mg-schedule-top > span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}
.mg-schedule ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mg-schedule li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 8px;
  position: relative;
  padding-bottom: 15px;
  font-size: 0.875rem;
}
.mg-schedule li time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.8125rem;
  padding-top: 2px;
}
.mg-schedule li > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-left: 2px solid #d5c9cf;
  padding: 0 0 0 19px;
  position: relative;
}
.mg-schedule li > div:before {
  content: '';
  position: absolute;
  top: 7px;
  left: -5px;
  width: 8px;
  height: 8px;
  background: #f6f5f5;
  border: 1px solid #99858f;
  border-radius: 50%;
}
.mg-schedule li.act > div:before {
  background: var(--wine);
  border-color: var(--wine);
}
.mg-schedule li.act > div {
  border-left-color: var(--wine);
}
.mg-schedule li b {
  font-weight: 400;
}
.mg-schedule li:not(.act) {
  color: var(--muted);
}
.mg-schedule li.act b {
  font-weight: 600;
  color: var(--wine);
}
.mg-schedule li > div > span {
  white-space: nowrap;
  font-size: 0.8125rem;
}
.mg-schedule > p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 7px !important;
}
.magic-page .vu-quote {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 1px solid #c3a6b2;
  background: #fff;
  box-shadow: 0 10px 40px #32202808;
  border-radius: 3px;
}
.mg-quote-person {
  display: flex;
  gap: 16px;
  margin: 25px 0 18px;
  align-items: center;
}
.mg-quote-person img {
  width: 57px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
}
.mg-quote-person h3 {
  font-size: 1.4rem;
}
.mg-quote-person p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 6px !important;
}
.mg-quote-format {
  padding: 16px 0;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.mg-quote-format strong {
  font-weight: 500;
  font-size: 1.25rem;
}
.mg-quote-format span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.magic-page .vu-total {
  padding: 20px 0;
}
.magic-page .vu-total > strong {
  font-size: 2.9rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.magic-page .vu-total > small {
  font-size: 0.875rem;
}
.magic-page .vu-breakdown summary {
  font-size: 0.875rem;
}
.magic-page .vu-quote > .vu-button {
  width: 100%;
  margin-top: 17px;
}
.magic-page .vu-notes {
  font-size: 0.875rem;
  line-height: 1.5;
}
.mg-conditions {
  border-top: 1px solid var(--line);
}
.mg-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mg-condition-grid article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.mg-condition-grid article > span {
  color: var(--wine);
  font-size: 0.8125rem;
}
.mg-condition-grid h3 {
  margin: 16px 0;
  font-size: 1.35rem;
}
.mg-condition-grid p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.magic-page .vu-dialog {
  width: min(940px, 94vw);
  max-height: 92dvh;
  border: 0;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 24px 100px #0004;
}
.magic-page .vu-dialog::backdrop {
  background: #171116bf;
  backdrop-filter: blur(5px);
}
.magic-page .vu-dialog-inner > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
}
.magic-page .vu-dialog-inner > header > h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  max-width: 85%;
}
.mg-gallery {
  padding: 24px 28px 32px;
}
.mg-gallery > img {
  width: 100%;
  max-height: 61dvh;
  object-fit: contain;
  background: #f3f1f2;
}
.mg-gallery-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.mg-gallery-toolbar p {
  font-size: 0.9375rem;
}
.mg-gallery-toolbar small {
  display: block;
  margin-top: 5px;
}
.mg-gallery-toolbar > div {
  display: flex;
  gap: 8px;
}
.mg-gallery-toolbar button {
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  background: white;
}
.mg-gallery > p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.mg-work-wrap {
  width: min(1320px, 91%);
  margin: auto;
  padding: 36px 0 75px;
}
.mg-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.mg-work-header h1 {
  font-size: 2.1rem;
  margin-top: 12px;
}
.mg-work-header .mg-work-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mg-work-actions .vu-button {
  min-height: 46px;
  padding: 11px 16px;
  font-size: 0.875rem;
}
.mg-work-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.mg-work-nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 14px 0;
  font-size: 0.9375rem;
}
.mg-work-nav button[aria-current] {
  border-bottom-color: var(--wine);
  color: var(--wine);
}
.mg-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0 35px;
}
.mg-stat {
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.mg-stat > span:first-child {
  font-size: 0.875rem;
}
.mg-stat strong {
  grid-row: 1/3;
  grid-column: 2;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--wine);
}
.mg-stat > small {
  font-size: 0.8125rem;
}
.mg-stat:first-child {
  background: #fbf7f8;
  border-color: #ccb1bd;
}
.mg-work-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 38px;
  align-items: start;
}
.mg-work-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 5px 0 21px;
}
.mg-work-section-title h2 {
  font-size: 1.5rem;
}
.mg-jobs {
  display: grid;
  gap: 12px;
}
.mg-job {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 21px 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
}
.mg-job:hover {
  border-color: var(--wine);
  background: #fcfafb;
}
.mg-job-date {
  display: grid;
  text-align: center;
  line-height: 1.2;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.mg-job-date b {
  font-size: 1.7rem;
  font-weight: 400;
}
.mg-job-date small {
  font-size: 0.75rem;
  margin-top: 5px;
}
.mg-job-title > b {
  font-size: 1rem;
  font-weight: 500;
  display: block;
}
.mg-job-title > small {
  font-size: 0.8125rem;
  display: block;
  margin-top: 7px;
}
.mg-job-title .mg-status {
  display: inline-block;
  margin-top: 10px;
}
.mg-job-end {
  display: grid;
  gap: 10px;
  text-align: right;
  align-self: start;
}
.mg-job-end > b {
  font-size: 0.9375rem;
  font-weight: 500;
}
.mg-job-end > span {
  color: var(--wine);
}
.mg-status {
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  color: #4c454a;
  background: #eeeaed;
  white-space: nowrap;
}
.mg-status-new {
  background: #f0e1e7;
  color: #682c3b;
}
.mg-status-confirmed {
  background: #edf1ef;
  color: #375749;
}
.mg-next-show {
  border: 1px solid var(--line);
  background: #fff;
  padding: 25px;
}
.mg-next-show > h3 {
  font-size: 1.5rem;
  margin-top: 15px;
}
.mg-next-show > p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 22px !important;
}
.mg-next-show .mg-schedule {
  margin-bottom: 20px;
}
.mg-next-show > .vu-button {
  width: 100%;
}
.mg-work-nudge {
  margin: 28px 0;
  background: #f6f5f5;
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.mg-work-nudge h3 {
  font-size: 1.25rem;
}
.mg-work-nudge p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px !important;
}
.mg-job-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.mg-job-filter button {
  background: white;
  border: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 0.875rem;
}
.mg-job-filter button[aria-pressed='true'] {
  background: var(--wine);
  color: var(--accent-ink, #fff);
  border-color: var(--wine);
}
.mg-order-detail {
  padding: 26px 28px 34px;
}
.mg-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.mg-order-head > strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.mg-order-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.mg-order-facts {
  margin: 0;
  display: grid;
  gap: 16px;
}
.mg-order-facts > div {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.mg-order-facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.mg-order-facts dd {
  font-size: 0.9375rem;
  margin: 0;
}
.mg-order-detail .mg-order-note {
  font-size: 0.875rem;
  background: #fbf7f8;
  padding: 18px;
  margin: 22px 0 !important;
}
.mg-order-checks {
  margin-top: 28px;
}
.mg-order-checks > h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.mg-order-detail .vu-action-row {
  margin-top: 24px;
}
.mg-work-footer {
  border-top: 1px solid var(--line);
  padding: 25px 4.5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.mg-work-footer a {
  text-decoration: none;
}
.mg-empty {
  background: #fff;
  border: 1px solid var(--line);
  padding: 35px;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.mg-empty p {
  color: var(--muted);
  max-width: 570px;
}
.mg-empty h3 {
  font-size: 1.5rem;
}
.mg-calendar-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}
.mg-month {
  padding: 25px;
  border: 1px solid var(--line);
}
.mg-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.mg-month-head h2 {
  font-size: 1.4rem;
  text-transform: capitalize;
}
.mg-month-head button {
  height: 42px;
  width: 42px;
  background: white;
  border: 1px solid var(--line);
}
.mg-weekdays,
.mg-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.mg-weekdays {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.mg-month-grid button {
  border: 1px solid transparent;
  background: #f6f5f5;
  min-height: 56px;
  position: relative;
  font-size: 0.9375rem;
}
.mg-month-grid button.busy {
  background: #f0e1e7;
  color: var(--wine);
}
.mg-month-grid button.tentative {
  background: #fff5dc;
}
.mg-month-grid button.unknown {
  background: white;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.mg-month-grid button[aria-pressed='true'] {
  border: 2px solid var(--wine);
}
.mg-month-grid button > span {
  display: block;
  font-size: 0.625rem;
}
.mg-calendar-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 20px 0 0;
}
.mg-calendar-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mg-calendar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #d0c2ca;
  background: #f6f5f5;
}
.mg-calendar-legend i.busy {
  background: #ead4de;
}
.mg-calendar-legend i.tentative {
  background: #fff5dc;
}
.mg-calendar-legend i.unknown {
  border-style: dashed;
  background: #fff;
}
.mg-calendar-editor {
  display: grid;
  gap: 20px;
}
.mg-calendar-editor > h3 {
  font-size: 1.6rem;
}
.mg-calendar-editor > p {
  font-size: 0.875rem;
  color: var(--muted);
}
.mg-block-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mg-block-list li {
  padding: 13px 15px;
  background: #f6f5f5;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 0.875rem;
}
.mg-block-list button {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--wine);
  font-size: 0.875rem;
}
.mg-calendar-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.mg-calendar-form .vu-button {
  margin-top: 18px;
}
.mg-calendar-coverage {
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.mg-calendar-coverage > h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.mg-calendar-coverage > p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 16px !important;
}
.mg-editor-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 42px;
  align-items: start;
}
.mg-editor-sidebar {
  position: sticky;
  top: 25px;
}
.mg-editor-sidebar nav {
  display: grid;
  gap: 4px;
}
.mg-editor-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  font-size: 0.9375rem;
}
.mg-editor-sidebar nav button > span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.mg-editor-sidebar nav button[aria-current] {
  background: #f4edf0;
  color: var(--wine);
  border-left: 2px solid var(--wine);
}
.mg-editor-preview {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.mg-editor-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 25%;
}
.mg-editor-preview h2 {
  font-size: 1.25rem;
}
.mg-editor-preview p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.mg-editor-preview .mg-link {
  font-size: 0.8125rem;
}
.mg-editor-body {
  min-width: 0;
}
.mg-editor-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 28px;
}
.mg-editor-heading h2 {
  font-size: 2rem;
  margin-bottom: 13px;
}
.mg-editor-heading p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 650px;
}
.mg-editor-body .vu-fields {
  gap: 20px;
}
.mg-editor-body .vu-field {
  margin-bottom: 20px;
}
.mg-editor-body .vu-field > textarea {
  line-height: 1.6;
}
.mg-cover-editor {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: 32px;
}
.mg-cover-editor > img {
  width: 170px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
}
.mg-cover-editor p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 12px !important;
}
.mg-file-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 12px 17px;
  font-size: 0.875rem;
  background: #fff;
  position: relative;
}
.mg-file-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.mg-file-label:focus-within {
  outline: 3px solid #ac7083;
  outline-offset: 3px;
}
.mg-editor-body .mg-subtitle {
  font-size: 1.3rem;
  margin: 25px 0 18px;
}
.mg-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 22px;
  margin-bottom: 25px;
}
.mg-editor-program-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.mg-editor-program-list details {
  border: 1px solid var(--line);
  background: white;
}
.mg-editor-program-list summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 20px 22px;
  cursor: pointer;
  font-size: 1.0625rem;
  align-items: center;
}
.mg-editor-program-list summary::-webkit-details-marker {
  display: none;
}
.mg-editor-program-list summary small {
  display: block;
  font-size: 0.8125rem;
  margin-top: 5px;
}
.mg-editor-program-list summary > b {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wine);
}
.mg-program-editor {
  border-top: 1px solid var(--line);
  padding: 25px 22px;
}
.mg-editor-inset {
  background: #f6f5f5;
  padding: 20px;
  margin: 20px 0;
}
.mg-editor-inset > h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.mg-editor-inset .vu-action-row {
  margin-top: 10px;
}
.mg-remove {
  border: 0;
  background: none;
  color: #983644 !important;
  font-size: 0.875rem;
  padding: 10px 0;
  text-align: left;
}
.mg-story-editor {
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 20px;
}
.mg-story-edit-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.mg-story-edit-top h3 {
  font-size: 1.3rem;
}
.mg-edit-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.mg-edit-photo {
  min-width: 0;
}
.mg-edit-photo img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}
.mg-edit-photo .vu-field {
  margin: 10px 0;
  font-size: 0.8125rem;
}
.mg-edit-photo .vu-field input {
  font-size: 0.875rem;
  padding: 10px;
  min-height: 44px;
}
.mg-photo-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.mg-photo-actions button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 0.8125rem;
  color: var(--wine);
}
.mg-editor-hint {
  padding: 18px 20px;
  background: #f6f5f5;
  font-size: 0.875rem !important;
  color: var(--muted);
  margin: 24px 0 !important;
}
.magic-page .vu-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fffefeee;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 35px;
  backdrop-filter: blur(8px);
}
.magic-page .vu-save > p {
  font-size: 0.875rem;
}
.mg-inline-feedback {
  font-size: 0.875rem !important;
  padding: 13px 16px;
  background: #f6f5f5;
  margin-top: 14px !important;
}
.mg-error {
  color: #8a2336 !important;
  background: #fff2f4 !important;
}
.mg-success {
  color: #375749 !important;
}
.mg-native-registration {
  padding: 20px;
  border: 1px solid var(--line);
  font-size: 0.875rem;
}
.mg-native-registration a {
  color: var(--wine);
}
@keyframes mg-enter {
  from {
    opacity: 0.25;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .mg-hero {
    gap: 70px;
  }
  .mg-hero-visual {
    height: 610px;
  }
  .mg-hero {
    min-height: 675px;
  }
}
@media (max-width: 1150px) {
  .mg-demo-bar > span {
    display: grid;
    gap: 2px;
  }
  .mg-hero {
    gap: 30px;
  }
  .mg-hero-visual {
    height: 535px;
  }
  .mg-hero h1 {
    font-size: 3.7rem;
  }
  .mg-scene-copy {
    padding: 33px;
  }
  .mg-artist {
    grid-template-columns: 200px 1fr 240px;
    gap: 24px;
  }
  .mg-artist-offers {
    padding-left: 20px;
  }
  .mg-artist-description {
    font-size: 0.875rem;
  }
  .mg-section-title {
    grid-template-columns: 35px 1.25fr 1fr;
  }
  .mg-profile-hero {
    gap: 5%;
  }
  .mg-profile-hero figure > img {
    height: 490px;
  }
  .mg-profile-description {
    margin: 24px 0;
  }
  .mg-profile-intro h1 {
    margin: 18px 0;
  }
  .mg-calc-grid {
    gap: 4%;
    grid-template-columns: 1.4fr 1fr;
  }
  .magic-page .vu-quote {
    padding: 22px;
  }
  .mg-program-choices > button {
    grid-template-columns: 17px 1fr;
    gap: 10px 13px;
    padding: 17px;
  }
  .mg-program-choices button > strong {
    grid-column: 2;
  }
  .mg-work-columns {
    gap: 25px;
  }
  .mg-work-header {
    align-items: flex-start;
  }
  .mg-work-actions {
    justify-content: flex-end;
  }
  .mg-editor-layout {
    grid-template-columns: 200px 1fr;
    gap: 30px;
  }
  .mg-filter-main {
    gap: 15px;
  }
  .mg-filter-more {
    font-size: 0.8125rem;
  }
}
@media (max-width: 900px) {
  .mg-section {
    padding-block: 62px;
  }
  .mg-demo-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 10px;
  }
  .mg-demo-bar > span {
    display: flex;
    gap: 14px;
  }
  .mg-demo-bar nav {
    width: 100%;
  }
  .mg-hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding-top: 28px;
    min-height: 0;
  }
  .mg-hero h1 {
    font-size: 3.15rem;
  }
  .mg-hero-copy > p {
    font-size: 1rem;
  }
  .mg-hero-note {
    margin-top: 25px;
  }
  .mg-hero-visual {
    height: 480px;
  }
  .mg-hero-visual figcaption {
    left: 24px;
    bottom: 24px;
  }
  .mg-hero-visual figcaption > strong {
    font-size: 2rem;
  }
  .mg-hero-actions .vu-button {
    padding: 14px 18px;
  }
  .mg-hero-actions .mg-link {
    font-size: 0.8125rem;
  }
  .mg-section-title {
    grid-template-columns: 30px 1fr;
    gap: 15px;
  }
  .mg-section-title p {
    grid-column: 2;
    max-width: 500px;
    padding: 0;
  }
  .mg-scene {
    grid-template-columns: 1fr 1fr;
  }
  .mg-scene-copy {
    padding: 28px;
  }
  .mg-scene-copy h3 {
    font-size: 1.9rem;
  }
  .mg-scene-copy .vu-button {
    font-size: 0.8125rem;
    padding: 12px 14px;
    gap: 14px;
  }
  .mg-scene-photo {
    min-height: 470px;
  }
  .mg-filter-main {
    grid-template-columns: 1fr 1fr;
  }
  .mg-artist {
    grid-template-columns: 200px 1fr;
    gap: 25px;
  }
  .mg-artist-offers {
    grid-column: 1/3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 0;
    padding: 0;
    gap: 20px;
  }
  .mg-artist-offers > .mg-eyebrow {
    grid-column: 1/-1;
    margin-bottom: -10px;
  }
  .mg-artist-offers button {
    border-top: 1px solid var(--line);
  }
  .mg-artist-main h3 button {
    font-size: 2rem;
  }
  .mg-questions {
    gap: 6%;
    grid-template-columns: 0.7fr 1fr;
  }
  .mg-partner h2 {
    font-size: 1.9rem;
  }
  .mg-partner .vu-button {
    font-size: 0.875rem;
    max-width: 270px;
  }
  .mg-profile-hero {
    grid-template-columns: 0.8fr 1fr;
    gap: 30px;
  }
  .mg-profile-hero figure > img {
    height: 470px;
  }
  .mg-profile-intro h1 {
    font-size: 3.4rem;
  }
  .mg-profile-intro .mg-eyebrow {
    font-size: 0.8125rem;
  }
  .mg-profile-description {
    gap: 12px;
  }
  .mg-profile-description p {
    font-size: 0.875rem;
  }
  .mg-profile-tagline {
    font-size: 1.8rem !important;
  }
  .mg-profile-actions .vu-button {
    font-size: 0.8125rem;
    padding: 14px 16px;
    gap: 18px;
  }
  .mg-profile-nav {
    gap: 30px;
  }
  .mg-story-grid {
    gap: 25px;
  }
  .mg-story-copy {
    display: block;
  }
  .mg-story-copy h3 {
    font-size: 1.3rem;
    margin: 10px 0;
  }
  .mg-manifesto .mg-wrap {
    grid-template-columns: 0.55fr 1fr;
    gap: 25px;
  }
  .mg-calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .magic-page .vu-quote {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
  }
  .magic-page .vu-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    z-index: 12;
    background: #fff;
    border-top: 1px solid #cab2bc;
    padding: 14px 4.5%;
    min-height: 76px;
    width: 100%;
    box-shadow: 0 -6px 24px #33212e0b;
  }
  .magic-page .vu-mobile-summary > span {
    min-width: 0;
    line-height: 1.5;
    font-size: 0.75rem;
  }
  .magic-page .vu-mobile-summary strong {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 1.25rem;
  }
  .magic-page .vu-mobile-summary > b {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.875rem;
    background: var(--wine);
    color: var(--accent-ink, #fff);
    padding: 11px 16px;
    font-weight: 400;
  }
  .mg-view-profile ~ .mg-footer {
    padding-bottom: 105px;
  }
  .mg-program-choices > button {
    grid-template-columns: 17px 1fr auto;
  }
  .mg-program-choices button > strong {
    grid-column: 3;
  }
  .mg-condition-grid {
    gap: 24px;
  }
  .mg-condition-grid h3 {
    font-size: 1.2rem;
  }
  .mg-work-header {
    flex-direction: column;
    gap: 20px;
  }
  .mg-work-actions {
    justify-content: flex-start;
  }
  .mg-dashboard-stats {
    gap: 12px;
  }
  .mg-stat {
    padding: 18px;
    grid-template-columns: 1fr;
  }
  .mg-stat strong {
    grid-row: 2;
    grid-column: 1;
  }
  .mg-stat small {
    grid-row: 3;
  }
  .mg-work-columns {
    grid-template-columns: 1fr;
  }
  .mg-next-show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }
  .mg-next-show > h3,
  .mg-next-show > p,
  .mg-next-show > .mg-eyebrow {
    grid-column: 1;
    margin: 0 !important;
  }
  .mg-next-show .mg-schedule {
    grid-column: 2;
    grid-row: 1/5;
    margin: 0;
  }
  .mg-next-show > .vu-button {
    grid-column: 1;
    align-self: end;
  }
  .mg-calendar-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .mg-month {
    padding: 20px;
  }
  .mg-month-grid button {
    min-height: 45px;
  }
  .mg-month-grid button > span {
    display: none;
  }
  .mg-calendar-legend {
    gap: 9px;
  }
  .mg-editor-layout {
    grid-template-columns: 175px 1fr;
    gap: 25px;
  }
  .mg-editor-sidebar nav button {
    font-size: 0.8125rem;
    gap: 10px;
    padding: 12px 8px;
  }
  .mg-cover-editor {
    grid-template-columns: 130px 1fr;
  }
  .mg-cover-editor > img {
    width: 130px;
    height: 160px;
  }
  .mg-edit-photos {
    grid-template-columns: 1fr 1fr;
  }
  .mg-order-grid {
    gap: 22px;
  }
  .mg-order-detail .mg-schedule {
    padding: 20px 15px;
  }
  .mg-schedule li {
    grid-template-columns: 95px 1fr;
    gap: 5px;
  }
  .mg-work-wrap {
    padding-top: 28px;
  }
}
@media (max-width: 650px) {
  .mg-wrap,
  .mg-work-wrap {
    width: calc(100% - 40px);
  }
  .mg-section {
    padding-block: 46px;
  }
  .magic-page h1 {
    font-size: 2.9rem;
  }
  .magic-page h2 {
    font-size: 2rem;
  }
  .mg-demo-bar {
    padding: 10px 20px;
  }
  .mg-demo-bar > span {
    display: grid;
    gap: 2px;
  }
  .mg-demo-bar nav {
    gap: 0;
    justify-content: space-between;
  }
  .mg-demo-bar button {
    font-size: 0.75rem;
    padding: 7px 6px;
  }
  .mg-demo-bar b {
    font-size: 0.75rem;
  }
  .mg-demo-bar small {
    font-size: 0.75rem;
  }
  .mg-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
    padding-bottom: 38px;
  }
  .mg-hero-copy {
    padding: 0;
  }
  .mg-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.5rem, 10.8vw, 3.7rem);
  }
  .mg-hero-copy > p {
    max-width: 410px;
  }
  .mg-hero-actions {
    margin-top: 23px;
    gap: 8px;
  }
  .mg-hero-actions .vu-button {
    width: 100%;
    font-size: 0.9375rem;
  }
  .mg-hero-actions .mg-link {
    font-size: 0.875rem;
    padding-top: 10px;
  }
  .mg-hero-note {
    display: none;
  }
  .mg-hero-visual {
    height: 360px;
  }
  .mg-hero-visual > img {
    object-position: 48% 50%;
  }
  .mg-hero-visual figcaption {
    left: 22px;
    bottom: 22px;
  }
  .mg-hero-visual figcaption > span {
    font-size: 0.875rem;
  }
  .mg-hero-visual figcaption > strong {
    font-size: 2.1rem;
  }
  .mg-image-index {
    right: 15px;
    top: 20px;
  }
  .mg-section-title {
    grid-template-columns: 25px 1fr;
    gap: 14px;
    margin-bottom: 25px;
  }
  .mg-section-title p {
    font-size: 0.9375rem;
  }
  .mg-section-no {
    margin-top: 3px;
  }
  .mg-distance-tabs {
    gap: 8px;
    margin-bottom: 18px;
  }
  .mg-distance-tabs button {
    grid-template-columns: 1fr;
    padding: 12px 0 16px;
    gap: 7px;
  }
  .mg-distance-tabs button > span {
    grid-row: auto;
    font-size: 0.75rem;
  }
  .mg-distance-tabs button > b {
    font-size: 1.0625rem;
    letter-spacing: -0.035em;
  }
  .mg-distance-tabs button > small {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .mg-scene {
    grid-template-columns: 1fr;
  }
  .mg-scene-photo {
    min-height: 0;
    height: 300px;
  }
  .mg-scene-copy {
    padding: 28px 24px 32px;
  }
  .mg-scene-copy h3 {
    font-size: 1.9rem;
    margin-top: 18px;
  }
  .mg-scene-copy .vu-button {
    font-size: 0.9375rem;
    width: 100%;
  }
  .mg-scene-copy dl {
    margin-block: 22px;
  }
  .mg-scene-caption {
    bottom: 18px;
    left: 18px;
  }
  .mg-filters {
    padding: 18px;
  }
  .mg-filter-main {
    gap: 16px;
  }
  .mg-filter-main > .vu-field:first-child {
    grid-column: 1/3;
  }
  .mg-filter-main > .vu-field:nth-child(3) {
    grid-column: 2;
  }
  .mg-filter-main .vu-field {
    font-size: 0.8125rem;
  }
  .mg-filter-main select,
  .mg-filter-main input {
    font-size: 0.875rem !important;
    padding: 10px !important;
  }
  .mg-filter-more {
    grid-column: 1/3;
    min-height: 42px;
    font-size: 0.875rem;
  }
  .mg-filter-extra {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 17px;
    padding-top: 17px;
  }
  .mg-filter-extra .vu-field {
    max-width: none;
  }
  .mg-result-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin: 18px 0;
  }
  .mg-artist {
    grid-template-columns: 100px 1fr;
    gap: 19px;
    padding: 23px 0;
  }
  .mg-artist-photo img {
    height: 145px;
    aspect-ratio: auto;
    object-position: center top;
  }
  .mg-artist-photo > span {
    display: none;
  }
  .mg-artist-main {
    padding: 0;
  }
  .mg-artist-main .mg-eyebrow {
    font-size: 0.75rem;
  }
  .mg-artist-main h3 {
    margin: 10px 0;
  }
  .mg-artist-main h3 button {
    font-size: 1.75rem;
    gap: 16px;
  }
  .mg-artist-tagline {
    font-size: 0.9375rem !important;
    line-height: 1.5;
  }
  .mg-artist-description {
    display: none;
  }
  .mg-artist-formats {
    margin: 14px 0 0;
    gap: 5px;
  }
  .mg-artist-formats > span {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  .mg-artist-main > .mg-link {
    font-size: 0.8125rem;
    margin-top: 8px;
    gap: 9px;
  }
  .mg-artist-offers {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
  }
  .mg-artist-offers > .mg-eyebrow {
    margin-bottom: 8px;
  }
  .mg-artist-offers button {
    grid-template-columns: 1fr auto;
    border-top: 0;
    gap: 5px 10px;
    padding: 14px 0;
  }
  .mg-artist-offers button > span:first-child {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.9375rem;
  }
  .mg-artist-offers button > b {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.9375rem;
    align-self: center;
  }
  .mg-artist-offers button > small {
    grid-row: 2;
  }
  .mg-artist-offers button > span:last-child {
    grid-row: 2;
    font-size: 1rem;
  }
  .mg-questions {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .mg-questions h2 {
    margin: 14px 0 16px;
    max-width: none;
  }
  .mg-questions > div > p {
    max-width: none;
  }
  .mg-partner {
    padding-block: 35px 45px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .mg-partner h2 {
    font-size: 2rem;
  }
  .mg-partner .vu-button {
    width: 100%;
    max-width: none;
  }
  .mg-footer {
    padding: 36px 20px 25px;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .mg-footer button {
    font-size: 1.375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
  }
  .mg-footer button span {
    margin: 0;
  }
  .mg-footer p {
    font-size: 0.875rem;
  }
  .mg-footer nav {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 0.8125rem;
  }
  .mg-profile-breadcrumb {
    padding-block: 14px 18px;
  }
  .mg-profile-breadcrumb > span {
    display: none;
  }
  .mg-profile-hero {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 30px;
    align-items: stretch;
  }
  .mg-profile-hero figure > img {
    height: 420px;
    object-position: center 18%;
  }
  .mg-profile-hero figure {
    order: 1;
  }
  .mg-profile-intro {
    order: 0;
  }
  .mg-profile-intro h1 {
    font-size: 3.25rem;
    margin: 20px 0 17px;
  }
  .mg-profile-tagline {
    font-size: 1.9rem !important;
    max-width: 420px;
  }
  .mg-profile-description {
    margin: 21px 0;
  }
  .mg-profile-description p {
    font-size: 0.9375rem;
  }
  .mg-profile-actions {
    display: grid;
    gap: 10px;
  }
  .mg-profile-actions .vu-button {
    font-size: 0.9375rem;
    width: 100%;
  }
  .mg-profile-actions > span {
    font-size: 0.8125rem;
  }
  .mg-profile-intro > .mg-link {
    font-size: 0.875rem;
    margin-top: 2px;
  }
  .mg-profile-nav {
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }
  .mg-profile-nav button {
    font-size: 0.8125rem;
    white-space: normal;
    text-align: left;
    padding: 14px 0;
    line-height: 1.5;
  }
  .mg-story-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .mg-story:nth-child(even) {
    margin-top: 0;
  }
  .mg-story:nth-child(even) .mg-story-photo > img {
    aspect-ratio: 1.42;
  }
  .mg-story-copy {
    padding-top: 17px;
  }
  .mg-story-copy h3 {
    font-size: 1.5rem;
    max-width: none;
  }
  .mg-manifesto {
    padding-block: 40px;
  }
  .mg-manifesto .mg-wrap {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .mg-manifesto .mg-eyebrow {
    max-width: none;
  }
  .mg-manifesto blockquote {
    font-size: 1.8rem;
  }
  .mg-manifesto .mg-wrap > span:last-child {
    grid-column: 1;
  }
  .mg-program-choices > button {
    grid-template-columns: 17px 1fr;
    gap: 9px 12px;
    padding: 16px;
  }
  .mg-program-choices button > strong {
    grid-column: 2;
    font-size: 1rem;
  }
  .mg-program-choices button b {
    font-size: 1rem;
  }
  .mg-calc-step {
    margin-bottom: 25px;
    padding-bottom: 25px;
  }
  .mg-calc-step > header h3 {
    font-size: 1.4rem;
  }
  .mg-calc-step > .vu-field {
    margin-top: 18px;
  }
  .mg-calc-step .vu-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .mg-calc-step .vu-field {
    font-size: 0.8125rem;
  }
  .mg-calc-step .vu-field input,
  .mg-calc-step .vu-field select {
    padding: 10px;
    font-size: 0.9375rem;
  }
  .mg-calc-step .vu-fields input[type='date'] {
    max-width: 100%;
    min-width: 0;
  }
  .mg-schedule {
    padding: 18px;
  }
  .mg-schedule-top {
    display: block;
  }
  .mg-schedule-top > span:last-child {
    display: block;
    margin-top: 4px;
  }
  .mg-schedule li {
    grid-template-columns: 96px 1fr;
    gap: 5px;
  }
  .mg-schedule li > div {
    padding-left: 14px;
    gap: 10px;
  }
  .magic-page .vu-quote {
    padding: 24px 22px;
  }
  .magic-page .vu-total > strong {
    font-size: 2.75rem;
  }
  .mg-condition-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mg-condition-grid h3 {
    font-size: 1.5rem;
    margin-block: 14px;
  }
  .mg-gallery {
    padding: 16px 18px 24px;
  }
  .magic-page .vu-dialog-inner > header {
    padding: 19px 18px;
  }
  .magic-page .vu-dialog-inner > header > h2 {
    font-size: 1.35rem;
  }
  .magic-page .vu-close {
    min-width: 40px;
    min-height: 40px;
  }
  .mg-gallery > img {
    max-height: 58dvh;
  }
  .mg-gallery-toolbar {
    gap: 12px;
  }
  .mg-work-wrap {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .mg-work-header h1 {
    font-size: 2rem;
  }
  .mg-work-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
  }
  .mg-work-actions .vu-button {
    font-size: 0.875rem;
    width: 100%;
    min-height: 46px;
  }
  .mg-work-nav {
    gap: 20px;
    margin-bottom: 24px;
  }
  .mg-work-nav button {
    font-size: 0.8125rem;
    text-align: left;
    line-height: 1.5;
  }
  .mg-dashboard-stats {
    gap: 9px;
    margin-bottom: 27px;
  }
  .mg-stat {
    padding: 14px 10px;
    gap: 9px;
  }
  .mg-stat > span:first-child {
    font-size: 0.75rem;
    min-height: 36px;
  }
  .mg-stat strong {
    font-size: 2rem;
  }
  .mg-stat small {
    display: none;
  }
  .mg-job {
    grid-template-columns: 43px 1fr;
    gap: 14px;
    padding: 17px 14px;
  }
  .mg-job-date {
    padding-right: 10px;
  }
  .mg-job-date b {
    font-size: 1.5rem;
  }
  .mg-job-title > b {
    font-size: 0.9375rem;
  }
  .mg-job-title > small {
    font-size: 0.8125rem;
  }
  .mg-job-end {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-top: 0;
  }
  .mg-next-show {
    display: block;
    padding: 23px;
  }
  .mg-next-show > h3 {
    margin-top: 15px !important;
  }
  .mg-next-show > p {
    margin: 12px 0 20px !important;
  }
  .mg-next-show .mg-schedule {
    margin: 20px 0;
  }
  .mg-work-nudge {
    display: block;
    padding: 20px;
  }
  .mg-work-nudge .mg-link {
    margin-top: 10px;
  }
  .mg-calendar-layout {
    grid-template-columns: 1fr;
  }
  .mg-month {
    padding: 20px 16px;
  }
  .mg-month-grid button {
    min-height: 47px;
  }
  .mg-calendar-editor {
    padding-top: 15px;
  }
  .mg-calendar-coverage {
    margin-top: 22px;
  }
  .mg-calendar-coverage .vu-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .mg-order-detail {
    padding: 22px 18px;
  }
  .mg-order-grid {
    grid-template-columns: 1fr;
  }
  .mg-order-head > strong {
    font-size: 1.8rem;
  }
  .mg-order-detail .vu-action-row {
    display: grid;
  }
  .mg-order-detail .vu-button {
    width: 100%;
  }
  .mg-editor-layout {
    /* minmax(0, …): иначе колонка растягивается под ленту вкладок (у неё
       своя прокрутка), и редактор на телефоне шире экрана — MOBILE-01 */
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .mg-editor-sidebar {
    position: static;
    min-width: 0;
  }
  .mg-editor-sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 5px;
  }
  .mg-editor-sidebar nav button {
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
    border-left: 0 !important;
    font-size: 0.8125rem;
  }
  .mg-editor-sidebar nav button[aria-current] {
    border-bottom-color: var(--wine);
  }
  .mg-editor-sidebar nav button > span {
    display: none;
  }
  .mg-editor-preview {
    display: none;
  }
  .mg-editor-heading h2 {
    font-size: 1.8rem;
  }
  .mg-editor-heading {
    padding-bottom: 22px;
    margin-bottom: 25px;
  }
  .mg-cover-editor {
    grid-template-columns: 100px 1fr;
    gap: 20px;
  }
  .mg-cover-editor > img {
    width: 100px;
    height: 140px;
  }
  .mg-cover-editor p {
    font-size: 0.8125rem;
  }
  .mg-file-label {
    padding: 12px 13px;
    font-size: 0.8125rem;
    gap: 10px;
  }
  .mg-editor-body .vu-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mg-editor-body .mg-check-grid {
    gap: 0 12px;
  }
  .mg-check-grid .vu-check {
    font-size: 0.875rem;
  }
  .mg-editor-program-list summary {
    padding: 17px;
    gap: 10px;
    font-size: 0.9375rem;
  }
  .mg-editor-program-list summary > b {
    font-size: 0.875rem;
    max-width: 100px;
    text-align: right;
  }
  .mg-program-editor {
    padding: 20px 17px;
  }
  .mg-program-editor .vu-inline-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mg-editor-inset {
    padding: 17px;
  }
  .mg-story-editor {
    padding: 19px 17px;
  }
  .mg-story-edit-top {
    align-items: flex-start;
    gap: 14px;
  }
  .mg-story-edit-top h3 {
    font-size: 1.25rem;
  }
  .mg-story-edit-top .mg-remove {
    font-size: 0.8125rem;
    padding-top: 0;
  }
  .mg-edit-photos {
    gap: 13px;
  }
  .mg-edit-photo .vu-field input {
    font-size: 0.8125rem;
  }
  .mg-photo-actions button {
    font-size: 0.75rem;
  }
  .magic-page .vu-save {
    padding: 16px 0;
  }
  .magic-page .vu-save > .vu-button {
    width: 100%;
  }
  .mg-work-footer {
    padding: 22px 20px;
    display: grid;
    gap: 12px;
  }
  .mg-empty {
    padding: 25px;
  }
  .mg-empty h3 {
    font-size: 1.4rem;
  }
  .mg-empty p {
    font-size: 0.9375rem;
  }
  .mg-empty .vu-button {
    width: 100%;
    font-size: 0.875rem;
  }
}
@media (max-width: 360px) {
  .mg-wrap,
  .mg-work-wrap {
    width: calc(100% - 30px);
  }
  .mg-demo-bar {
    padding-inline: 15px;
  }
  .mg-demo-bar button {
    font-size: 0.75rem;
    padding-inline: 4px;
  }
  .mg-hero h1 {
    font-size: 2.55rem;
  }
  .mg-hero-visual {
    height: 315px;
  }
  .mg-distance-tabs button > b {
    font-size: 0.9375rem;
  }
  .mg-filter-main {
    grid-template-columns: 1fr;
  }
  .mg-filter-main > .vu-field,
  .mg-filter-main > .vu-field:first-child,
  .mg-filter-main > .vu-field:nth-child(3),
  .mg-filter-more {
    grid-column: 1;
  }
  .mg-artist {
    grid-template-columns: 85px 1fr;
    gap: 15px;
  }
  .mg-artist-main h3 button {
    font-size: 1.5rem;
  }
  .mg-artist-formats {
    display: none;
  }
  .mg-calc-step .vu-fields {
    grid-template-columns: 1fr;
  }
  .mg-schedule li {
    grid-template-columns: 86px 1fr;
  }
  .mg-schedule li time {
    font-size: 0.75rem;
  }
  .mg-schedule li > div {
    padding-left: 11px;
  }
  .mg-cover-editor {
    grid-template-columns: 1fr;
  }
  .mg-cover-editor > img {
    width: 140px;
    height: 165px;
  }
  .mg-check-grid {
    grid-template-columns: 1fr;
  }
  .mg-work-nav {
    gap: 15px;
  }
  .mg-dashboard-stats {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mg-main,
  .mg-scene {
    animation: none;
  }
  .magic-page * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .mg-story:hover img,
  .mg-artist-photo:hover img {
    transform: none;
  }
}
/* Regular controls remain readable on small screens; small type is reserved for metadata. */
.mg-editor-body {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.mg-editor-body:disabled {
  opacity: 0.72;
}
.mg-main:focus {
  outline: none;
}
.mg-status {
  font-size: 0.875rem;
}
.mg-calendar-legend {
  font-size: 0.875rem;
}
.magic-page .vu-availability {
  font-size: 0.875rem;
}
.mg-program-choices button b {
  font-weight: 600;
}
.mg-editor-heading p {
  max-width: 650px;
}
@media (max-width: 900px) {
  .mg-editor-sidebar nav button,
  .mg-work-nav button {
    font-size: 0.875rem;
  }
  .mg-scene-copy .vu-button,
  .mg-profile-actions .vu-button {
    font-size: 0.875rem;
  }
}
@media (max-width: 650px) {
  .mg-filter-main .vu-field,
  .mg-calc-step .vu-field,
  .mg-editor-sidebar nav button,
  .mg-file-label,
  .mg-work-nav button,
  .mg-profile-nav button,
  .mg-artist-main > .mg-link {
    font-size: 0.875rem;
  }
  .mg-artist-formats > span {
    font-size: 0.8125rem;
  }
  .mg-photo-actions button {
    font-size: 0.8125rem;
  }
  .mg-editor-body .vu-fields .vu-field {
    font-size: 0.875rem;
  }
  .mg-filter-main select,
  .mg-filter-main input {
    font-size: 1rem !important;
  }
}
.mg-artist-main h3 a {
  font: inherit;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  text-decoration: none;
}
.mg-artist-main h3 a:hover {
  color: var(--wine);
}
@media (max-width: 900px) {
  .mg-artist-main h3 a {
    font-size: 2rem;
  }
}
@media (max-width: 650px) {
  .mg-artist-main h3 a {
    font-size: 1.75rem;
    gap: 16px;
  }
}
@media (max-width: 360px) {
  .mg-artist-main h3 a {
    font-size: 1.5rem;
  }
}

/* ——— Наши правки поверх пакета ———
   1. В globals.css у section свои отступы — внутри модуля они складываются
      с его собственными и рвут ритм.
   2. Шрифт берём общий: своего @font-face раздел не заводит. */
.magic-page { min-width: 0; max-width: 100%; font-family: var(--font-ui, Onest), Arial, sans-serif; }

/* Блок «Кому отвечать?» и «Собираете мероприятие целиком?» приходят из
   общего файла направлений и там прижаты к краям экрана (padding 4%).
   На странице фокусника вся композиция стоит в колонке `.mg-wrap`, и
   контакты уезжали левее остального — как чужая вставка. Ставим их в ту
   же колонку. */
.magic-page .vu-contacts {
  width: min(1320px, 91%);
  margin-inline: auto;
  padding-inline: 0;
}

/* Подписи поверх фотографий: затемнение снизу рисует псевдоэлемент, но
   фотографию подрядчик меняет на свою, и она может оказаться светлой.
   Тень по буквам держит текст читаемым в любом случае. */
.magic-page figcaption[data-over-photo] { text-shadow: 0 1px 8px #0009; }
/* Имя артиста вводит сам исполнитель: одно длинное слово без пробелов раздвигало
   карточку и всю страницу шире экрана телефона. Переносим внутри слова. */
.mg-artist-main h3 { overflow-wrap: anywhere; }
/* Редактор программ на телефоне (22 сентября 2026): раскрытая программа не должна быть шире экрана —
   узлы сетки по умолчанию не уже своего содержимого, а поля внутри просят 340 px. */
.mg-editor-program-list { grid-template-columns: minmax(0, 1fr); }
.mg-editor-program-list > details, .mg-editor-program-list summary, .mg-program-editor { min-width: 0; max-width: 100%; }
.mg-editor-program-list summary > span { min-width: 0; overflow-wrap: anywhere; }
.mg-program-editor .vu-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-program-editor .vu-field, .mg-program-editor .vu-field > input, .mg-program-editor .vu-field > select, .mg-program-editor .vu-field > textarea { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .mg-program-editor .vu-fields { grid-template-columns: minmax(0, 1fr); } }

/* r86: названия номеров и тексты из анкеты фокусника — длинное слово без пробелов не тянет страницу вбок. */
.magic-page article,.magic-page h1,.magic-page h2,.magic-page h3,.magic-page p{min-width:0;overflow-wrap:anywhere}


/* System night palette. Light layout and photographic artwork stay unchanged. */
@media (prefers-color-scheme: dark) {
.mg-skip{background:var(--theme-surface);color:var(--theme-accent)}
.magic-page{--wine:var(--theme-accent);--ink:var(--theme-ink);--muted:var(--theme-muted);--soft:var(--theme-surface-2);--line:var(--theme-line);background:var(--theme-surface);--bg:var(--theme-surface);--surface:var(--theme-surface);--surface-2:var(--theme-surface-2);--surface-3:var(--theme-surface-3);--line-strong:var(--theme-line-strong);--accent:var(--theme-accent);--accent-fill:var(--theme-fill);--accent-fill-hover:var(--theme-fill-hover);--accent-soft:var(--theme-tint);--accent-hover:var(--theme-accent-hover);--ok:var(--theme-ok);--warn:var(--theme-warn);--danger:var(--theme-danger)}
.magic-page .vu-field input,
.magic-page .vu-field select,
.magic-page .vu-field textarea{background:var(--theme-surface)}
.mg-demo-bar{background:var(--theme-surface);border-bottom:1px solid var(--theme-line-strong)}
.mg-demo-bar button[aria-current]{background:var(--theme-surface)}
.mg-scene-caption{background:var(--theme-surface)}
.mg-scene-copy dt{color:var(--theme-muted)}
.mg-directory{background:var(--theme-surface)}
.mg-filters{background:var(--theme-surface)}
.mg-filter-more{background:var(--theme-surface)}
.mg-artist-formats > span{background:var(--theme-surface-2)}
.mg-footer p{color:var(--theme-muted)}
.mg-footer > small{color:var(--theme-muted)}
.mg-profile-hero figcaption{background:var(--theme-surface)}
.mg-photo-open{background:var(--theme-surface)}
.mg-program-choices > button{background:var(--theme-surface)}
.mg-program-choices > button.selected{background:var(--theme-surface)}
.mg-radio{border:1px solid var(--theme-line-strong)}
.selected .mg-radio{background:var(--theme-fill)}
.mg-schedule{background:var(--theme-surface)}
.mg-schedule li > div{border-left:2px solid var(--theme-line-strong)}
.mg-schedule li > div:before{background:var(--theme-surface);border:1px solid var(--theme-line-strong)}
.mg-schedule li.act > div:before{background:var(--theme-fill)}
.magic-page .vu-quote{border:1px solid var(--theme-line-strong);background:var(--theme-surface)}
.magic-page .vu-dialog-inner > header{background:var(--theme-surface)}
.mg-gallery > img{background:var(--theme-surface-2)}
.mg-gallery-toolbar button{background:var(--theme-surface)}
.mg-stat{background:var(--theme-surface)}
.mg-stat:first-child{background:var(--theme-surface);border-color:var(--theme-line-strong)}
.mg-job{background:var(--theme-surface)}
.mg-job:hover{background:var(--theme-surface)}
.mg-status{color:var(--theme-ink);background:var(--theme-surface-2)}
.mg-status-new{background:var(--theme-surface-2);color:var(--theme-accent)}
.mg-status-confirmed{background:var(--theme-surface-2);color:var(--theme-ok)}
.mg-next-show{background:var(--theme-surface)}
.mg-work-nudge{background:var(--theme-surface)}
.mg-job-filter button{background:var(--theme-surface)}
.mg-job-filter button[aria-pressed='true']{background:var(--theme-fill)}
.mg-order-detail .mg-order-note{background:var(--theme-surface)}
.mg-empty{background:var(--theme-surface)}
.mg-month-head button{background:var(--theme-surface)}
.mg-month-grid button{background:var(--theme-surface)}
.mg-month-grid button.busy{background:var(--theme-surface-2)}
.mg-month-grid button.tentative{background:var(--theme-surface-2)}
.mg-month-grid button.unknown{background:var(--theme-surface)}
.mg-calendar-legend i{border:1px solid var(--theme-line-strong);background:var(--theme-surface)}
.mg-calendar-legend i.busy{background:var(--theme-surface-2)}
.mg-calendar-legend i.tentative{background:var(--theme-surface-2)}
.mg-calendar-legend i.unknown{background:var(--theme-surface)}
.mg-block-list li{background:var(--theme-surface)}
.mg-editor-sidebar nav button[aria-current]{background:var(--theme-surface-2)}
.mg-file-label{background:var(--theme-surface)}
.mg-file-label:focus-within{outline:3px solid var(--theme-line-strong)}
.mg-editor-program-list details{background:var(--theme-surface)}
.mg-editor-inset{background:var(--theme-surface)}
.mg-remove{color:var(--theme-accent) !important}
.mg-editor-hint{background:var(--theme-surface)}
.mg-inline-feedback{background:var(--theme-surface)}
.mg-error{color:var(--theme-accent) !important;background:var(--theme-surface) !important}
.mg-success{color:var(--theme-ok) !important}
@media (max-width: 900px){.magic-page .vu-mobile-summary{background:var(--theme-surface);border-top:1px solid var(--theme-line-strong)}}
@media (max-width: 900px){.magic-page .vu-mobile-summary > b{background:var(--theme-fill)}}
}

/* Translucent interface surfaces follow the page; photo pixels stay untouched. */
@media (prefers-color-scheme:dark){
.magic-page .vu-save{background: color-mix(in srgb,var(--theme-surface) 93%,transparent)}
}
