/* =========================================================================
   DivoDivo — дизайн-система «Персиковое облако»
   Слой 3: оболочка, навигация, элементы управления, главная страница
   Подключается последним и задаёт визуальный язык всему интерфейсу.
   ========================================================================= */

/* -------------------------------------------------------------------------
   0. Движение
   ------------------------------------------------------------------------- */

@keyframes sh-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sh-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sh-slide-right {
  from {
    opacity: 0;
    transform: translate3d(-22px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sh-sheen {
  0% {
    transform: translateX(-130%) skewX(-16deg);
  }
  100% {
    transform: translateX(230%) skewX(-16deg);
  }
}

@keyframes sh-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sh-float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(2.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes sh-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

/* -------------------------------------------------------------------------
   1. Оболочка
   ------------------------------------------------------------------------- */

.app-shell {
  color: var(--ink);
}

/* элементы, спрятанные скриптом через [hidden], не должны всплывать из-за display в других правилах */
.photo-stage__empty[hidden],
.video-stage__empty[hidden],
.photo-history-panel[hidden],
.video-history-panel[hidden],
.library-empty[hidden],
.player-dock[hidden],
.lyrics-drawer[hidden],
.auth-card[hidden] {
  display: none !important;
}

.page-content > * {
  position: relative;
  z-index: 1;
}

/* мягкие «облачные» вставки поверх холста */
.app-shell::before {
  content: "";
  position: fixed;
  top: -12vh;
  right: -8vw;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 226, 209, 0.72), rgba(255, 214, 228, 0.32) 52%, transparent 72%);
  filter: blur(24px);
  animation: sh-float 22s ease-in-out infinite;
}

/* -------------------------------------------------------------------------
   2. Боковая панель
   ------------------------------------------------------------------------- */

.sidebar,
body[data-page="home"] .sidebar,
body[data-page="profile"] .sidebar {
  gap: 20px;
  border: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 251, 0.9) 52%, rgba(255, 249, 250, 0.94));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--sh-md), var(--sh-inset);
  scrollbar-color: rgba(244, 168, 194, 0.45) transparent;
  animation: sh-slide-right 620ms var(--ease-out) backwards;
}

.sidebar::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(244, 168, 194, 0.45);
}

.logo,
body[data-page="home"] .logo {
  position: relative;
  margin-bottom: 2px;
  padding-left: 2px;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(104deg, #ff9a71 0%, #f7749f 46%, #c98bf0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sh-shimmer 9s ease-in-out infinite;
}

/* кнопка второго дизайна убрана из разметки — прячем на случай кэша */
.design-switch-button {
  display: none !important;
}

/* --- вход --- */
.auth-card,
body[data-page="home"] .auth-card {
  padding: 4px 0 0;
  border-radius: var(--r-lg);
  background: transparent;
  box-shadow: none;
}

.auth-card__head strong {
  color: var(--ink-strong);
}

.auth-card__head span {
  color: var(--ink-dim);
}

.auth-btn {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border-radius: var(--r-pill);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.auth-btn--yandex,
body[data-page="home"] .auth-btn--yandex {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--sh-glow);
  text-shadow: 0 1px 2px rgba(180, 80, 110, 0.28);
}

.auth-btn--yandex::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 100%;
  background: var(--grad-sheen);
  opacity: 0;
  pointer-events: none;
}

.auth-btn--yandex:hover::after {
  opacity: 1;
  animation: sh-sheen 900ms var(--ease-out);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-strong);
  filter: saturate(108%);
}

.auth-btn:active {
  transform: translateY(0) scale(0.985);
}

.auth-btn--vk,
body[data-page="home"] .auth-btn--vk {
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--ink);
}

.auth-text {
  color: var(--ink-soft);
}

/* --- вкладки навигации (порядок и состав не меняются) --- */
.sidebar-nav {
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-nav a,
body[data-page="home"] .sidebar-nav a {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.sidebar-nav a::before,
body[data-page="home"] .sidebar-nav a::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(238, 168, 192, 0.5);
  box-shadow: none;
  transition: all var(--dur) var(--ease);
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-accent-soft);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: -1;
}

.sidebar-nav a:hover,
body[data-page="home"] .sidebar-nav a:hover {
  transform: translateX(3px);
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-xs);
}

.sidebar-nav a:hover::before,
body[data-page="home"] .sidebar-nav a:hover::before {
  background: var(--rose-400);
  transform: scale(1.2);
}

.sidebar-nav a.is-active,
body[data-page="home"] .sidebar-nav a.is-active {
  color: var(--ink-strong);
  font-weight: 800;
  background: linear-gradient(120deg, rgba(255, 205, 176, 0.55), rgba(252, 184, 214, 0.5));
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-nav a.is-active::before,
body[data-page="home"] .sidebar-nav a.is-active::before {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--peach-400), var(--rose-500));
  box-shadow: 0 0 0 4px rgba(255, 178, 205, 0.32);
}

.sidebar-nav a.is-muted,
.sidebar-footer a.is-muted {
  opacity: 0.6;
}

/* --- быстрый старт --- */
.quick-start,
body[data-page="home"] .quick-start {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-top: auto;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(120% 90% at 12% 6%, rgba(255, 255, 255, 0.4), transparent 56%),
    linear-gradient(150deg, #ff9f76 0%, #f97a95 50%, #e56bb0 100%);
  box-shadow: 0 20px 44px rgba(228, 120, 165, 0.34);
}

.quick-start::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.6), transparent 68%);
  animation: sh-breathe 7s ease-in-out infinite;
}

.quick-start h3,
body[data-page="home"] .quick-start h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(190, 90, 125, 0.3);
}

.quick-start p,
body[data-page="home"] .quick-start p {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(170, 66, 105, 0.4);
}

/* --- подвал боковой панели --- */
.sidebar-footer {
  gap: 10px;
}

.sidebar-footer a,
body[data-page="home"] .sidebar-footer a {
  color: var(--ink-soft);
}

.sidebar-footer a:hover,
body[data-page="home"] .sidebar-footer a:hover {
  color: var(--ink-strong);
}

.sidebar-footer a.sidebar-social-button,
.sidebar-footer a.sidebar-support-link {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.sidebar-social-button--max {
  background: linear-gradient(180deg, rgba(233, 220, 255, 0.62), rgba(255, 255, 255, 0.82));
  border-color: rgba(203, 178, 255, 0.42);
}

.sidebar-social-button--telegram-link {
  background: linear-gradient(180deg, rgba(206, 232, 255, 0.6), rgba(255, 255, 255, 0.82));
  border-color: rgba(150, 199, 245, 0.44);
}

.sidebar-social-button:hover,
.sidebar-support-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--sh-sm);
}

.sidebar-support-link {
  color: var(--ink-soft);
  justify-content: center;
}

.sidebar-social-button__icon {
  box-shadow: 0 6px 16px rgba(206, 124, 157, 0.22);
}

/* -------------------------------------------------------------------------
   3. Аккаунт
   ------------------------------------------------------------------------- */

.account-trigger,
body[data-page="home"] .account-trigger {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.account-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.account-trigger__avatar {
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(247, 139, 178, 0.32);
}

.account-trigger__meta strong {
  color: var(--ink-strong);
}

.account-trigger__meta span {
  color: var(--ink-dim);
}

.account-trigger__arrow {
  color: var(--rose-500);
}

.account-menu,
body[data-page="home"] .account-menu {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow: var(--sh-lg);
  animation: sh-rise 260ms var(--ease-out) backwards;
}

.account-menu__balance {
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(255, 214, 191, 0.55), rgba(255, 203, 221, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.account-menu__balance-row {
  color: var(--ink-strong);
}

.account-menu__balance-row span:last-child {
  color: var(--rose-600);
  font-weight: 800;
}

.account-menu__topup {
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-glow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.account-menu__topup:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-strong);
}

.account-menu__id {
  color: var(--ink-dim);
}

.account-menu__id-icon,
.account-menu__icon {
  color: var(--rose-400);
}

.account-menu__divider {
  background: var(--line);
}

.account-menu__item {
  color: var(--ink-soft);
  border-radius: var(--r-xs);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.account-menu__item:hover {
  color: var(--ink-strong);
  background: rgba(255, 226, 235, 0.72);
  transform: translateX(3px);
}

.account-menu__item--danger {
  color: #e05a7f;
}

/* -------------------------------------------------------------------------
   4. Кнопки и чипы
   ------------------------------------------------------------------------- */

.primary-btn,
body[data-page="home"] .primary-btn,
body[data-page="music"] .primary-btn--music {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--sh-glow);
  text-shadow: 0 1px 2px rgba(180, 80, 110, 0.24);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: var(--grad-sheen);
  opacity: 0;
  pointer-events: none;
}

.primary-btn:hover,
body[data-page="home"] .primary-btn:hover,
body[data-page="music"] .primary-btn--music:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-strong);
  filter: saturate(110%);
}

.primary-btn:hover::after {
  opacity: 1;
  animation: sh-sheen 900ms var(--ease-out);
}

.primary-btn:active,
body[data-page="music"] .primary-btn--music:active {
  transform: translateY(0) scale(0.985);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-btn,
body[data-page="music"] .secondary-btn--music {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-strong);
  font-weight: 700;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.secondary-btn:hover,
body[data-page="music"] .secondary-btn--music:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--rose-300);
  box-shadow: var(--sh-sm);
}

.pill-btn,
.ghost-chip {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pill-btn:hover,
.ghost-chip:hover {
  transform: translateY(-2px);
  border-color: var(--rose-300);
  background: #fff;
  color: var(--ink-strong);
  box-shadow: var(--sh-sm);
}

.composer-chip,
body[data-page="music"] .composer-chip--music {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-weight: 700;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.composer-chip:hover,
body[data-page="music"] .composer-chip--music:hover {
  transform: translateY(-2px);
  color: var(--ink-strong);
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.composer-chip.is-active,
body[data-page="music"] .composer-chip--music.is-active {
  color: var(--ink-strong);
  border-color: transparent;
  background: linear-gradient(120deg, rgba(255, 205, 176, 0.9), rgba(252, 184, 214, 0.85));
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.icon-btn,
.star-btn {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.icon-btn:hover,
.star-btn:hover {
  transform: translateY(-1px) scale(1.05);
  color: var(--rose-500);
  border-color: var(--rose-300);
  background: #fff;
}

/* переключатель вкладок «Начинающий / Профи» и аналоги */
.tab-switch {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tab-switch__item,
body[data-page="music"] .tab-switch__item {
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* режимы референсов на странице видео: три вкладки в узкой колонке */
.video-reference-mode .tab-switch__item {
  padding: 0 12px;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.tab-switch__item:hover,
body[data-page="music"] .tab-switch__item:hover {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.8);
}

.tab-switch__item--active,
body[data-page="music"] .tab-switch__item--active {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--sh-glow);
  text-shadow: 0 1px 2px rgba(180, 80, 110, 0.22);
}

.music-voice-switch,
body[data-page="music"] .music-voice-switch {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body[data-page="music"] .music-voice-switch__item {
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="music"] .music-voice-switch__item:hover {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.82);
}

body[data-page="music"] .music-voice-switch__item--active {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--sh-glow);
}

/* иконки внутри музыкальных кнопок остаются, но перекрашиваются */
body[data-page="music"] .composer-chip--music::before,
body[data-page="music"] .secondary-btn--music::before {
  color: var(--rose-500);
}

body[data-page="music"] .primary-btn--music::before {
  color: #fff;
}

body[data-page="music"] .composer-chip--music.is-active::before {
  color: var(--rose-600);
}

/* -------------------------------------------------------------------------
   5. Поля ввода, выпадающие списки
   ------------------------------------------------------------------------- */

.prompt-box,
.prompt-composer,
.style-composer,
body[data-page="music"] .prompt-composer--music,
body[data-page="music"] .style-composer--music {
  border-radius: var(--r-lg);
  background: transparent;
}

.prompt-composer__body,
.style-composer__body,
body[data-page="music"] .prompt-composer--music .prompt-composer__body,
body[data-page="music"] .style-composer--music .style-composer__body,
body[data-page="video"] .prompt-composer--video .prompt-composer__body {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.prompt-composer__body:focus-within,
.style-composer__body:focus-within,
body[data-page="music"] .prompt-composer--music .prompt-composer__body:focus-within,
body[data-page="music"] .style-composer--music .style-composer__body:focus-within,
body[data-page="video"] .prompt-composer--video .prompt-composer__body:focus-within {
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 196, 218, 0.34), var(--sh-sm);
}

.prompt-box textarea,
.prompt-composer__body textarea,
.style-composer__body textarea,
body[data-page="music"] .prompt-composer--music .prompt-composer__body textarea,
body[data-page="music"] .style-composer--music .style-composer__body textarea,
body[data-page="video"] .prompt-composer--video .prompt-composer__body textarea {
  color: var(--ink);
  background: transparent;
}

.prompt-composer__body textarea::placeholder,
body[data-page="music"] .prompt-composer--music .prompt-composer__body textarea::placeholder,
body[data-page="music"] .style-composer--music .style-composer__body textarea::placeholder,
body[data-page="music"] .compact-title-input::placeholder,
body[data-page="video"] .prompt-composer--video .prompt-composer__body textarea::placeholder {
  color: var(--ink-faint);
}

.prompt-footer,
body[data-page="music"] .prompt-composer--music .prompt-footer,
body[data-page="music"] .style-composer--music .prompt-footer {
  color: var(--ink-dim);
}

.compact-title-input,
body[data-page="music"] .compact-title-input {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.compact-title-input:focus {
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 196, 218, 0.32);
}

.compact-title-counter,
body[data-page="music"] .compact-title-counter {
  color: var(--ink-dim);
}

.form-field span,
.form-help,
.separator-text,
.audio-upload-note,
body[data-page="music"] .audio-upload-note {
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select,
.select-field,
.compact-select select {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.custom-dropdown__trigger,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.custom-dropdown__trigger:hover,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:hover {
  transform: translateY(-1px);
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: var(--sh-sm);
  color: var(--ink-strong);
}

.custom-dropdown__trigger::after,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music::after,
body[data-page="music"] .custom-dropdown--music.is-open .custom-dropdown__trigger--music::after,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:hover::after {
  color: var(--rose-500);
}

.custom-dropdown__menu {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: var(--sh-lg);
}

.custom-dropdown.is-open .custom-dropdown__menu {
  animation: sh-rise 220ms var(--ease-out) backwards;
}

.custom-dropdown__option {
  border-radius: var(--r-xs);
  color: var(--ink-soft);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.custom-dropdown__option:hover {
  color: var(--ink-strong);
  background: rgba(255, 228, 237, 0.8);
  transform: translateX(3px);
}

.custom-dropdown__option.is-active {
  color: var(--ink-strong);
  background: linear-gradient(120deg, rgba(255, 205, 176, 0.7), rgba(252, 184, 214, 0.62));
  font-weight: 700;
}

.custom-dropdown__option-group {
  color: var(--rose-500);
  font-weight: 800;
}

.compact-select::after {
  color: var(--rose-500);
}

.toggle-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: var(--sh-xs);
}

.toggle-card input {
  accent-color: var(--rose-400);
}

.music-tuning__label,
body[data-page="music"] .music-tuning__label {
  color: var(--ink-soft);
}

body[data-page="music"] .music-tuning {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--sh-xs);
}

body[data-page="music"] .music-tuning__range {
  background: linear-gradient(90deg, rgba(255, 205, 176, 0.9), rgba(252, 168, 199, 0.9));
}

body[data-page="music"] .music-tuning__range::-webkit-slider-thumb {
  background: #fff;
  border: 2px solid var(--rose-400);
  box-shadow: 0 4px 12px rgba(238, 115, 155, 0.35);
}

body[data-page="music"] .music-tuning__range::-moz-range-track {
  background: linear-gradient(90deg, rgba(255, 205, 176, 0.9), rgba(252, 168, 199, 0.9));
}

body[data-page="music"] .music-tuning__range::-moz-range-thumb {
  background: #fff;
  border: 2px solid var(--rose-400);
}

.audio-upload-panel,
body[data-page="music"] .audio-upload-panel {
  border-radius: var(--r-md);
}

.audio-upload-box,
body[data-page="music"] .audio-upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.audio-upload-box:hover {
  border-color: var(--rose-400);
  background: rgba(255, 255, 255, 0.86);
}

.ghost-chip--file,
body[data-page="music"] .ghost-chip--file {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

/* карточка исходного трека */
.source-track-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sh-sm);
}

.source-track-card__mini-cover {
  border-radius: var(--r-sm);
  background: var(--grad-accent);
}

.source-track-card__remove {
  color: var(--ink-dim);
  transition: color var(--dur) var(--ease);
}

.source-track-card__remove:hover {
  color: var(--rose-600);
}

.source-track-card__meta {
  color: var(--ink-dim);
}

/* -------------------------------------------------------------------------
   6. Панели создания и результатов
   ------------------------------------------------------------------------- */

.creation-panel,
body[data-page="music"] .creation-panel--music,
.creation-panel--photo {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.985), rgba(255, 253, 252, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sh-md), var(--sh-inset);
  animation: sh-rise 640ms var(--ease-out) backwards;
  animation-delay: 60ms;
}

.results-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 253, 0.92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sh-md), var(--sh-inset);
  animation: sh-rise 640ms var(--ease-out) backwards;
  animation-delay: 140ms;
}

.panel-head,
.panel-head--music,
body[data-page="music"] .panel-head--music,
.panel-head--photo,
.panel-head--video {
  padding-bottom: 4px;
  border-bottom: 0;
}

.results-title {
  color: var(--ink-strong);
  letter-spacing: -0.035em;
}

.results-subtitle {
  color: var(--ink-soft);
}

.results-retention-note {
  color: var(--rose-500);
  font-weight: 600;
}

.status-banner {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(255, 248, 243, 0.94), rgba(255, 246, 249, 0.9));
  color: var(--ink);
  box-shadow: var(--sh-xs);
}

.status-banner--error {
  border-color: rgba(232, 132, 162, 0.42);
  background: linear-gradient(120deg, rgba(255, 238, 242, 0.95), rgba(255, 230, 237, 0.92));
  color: #b84568;
}

.status-banner--success {
  border-color: rgba(126, 196, 150, 0.42);
  background: linear-gradient(120deg, rgba(238, 251, 242, 0.95), rgba(230, 248, 237, 0.92));
  color: #3f7d58;
}

.results-divider::after {
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.separator-text {
  color: var(--ink-dim);
}

/* -------------------------------------------------------------------------
   7. Главная — герой
   ------------------------------------------------------------------------- */

body[data-page="home"] .page-content {
  gap: 26px;
}

.hero-banner,
body[data-page="home"] .hero-banner {
  border: 1px solid var(--line-light);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(255, 226, 205, 0.92), transparent 58%),
    radial-gradient(110% 120% at 92% 12%, rgba(255, 208, 226, 0.9), transparent 58%),
    linear-gradient(150deg, #fffaf7 0%, #fff3f1 48%, #fdf0f6 100%);
  box-shadow: var(--sh-lg), var(--sh-inset);
  animation: sh-rise 720ms var(--ease-out) backwards;
}

body[data-page="home"] .hero-banner::before {
  background: radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.7), transparent 62%);
  opacity: 0.9;
}

.hero-banner::after,
body[data-page="home"] .hero-banner::after {
  background: linear-gradient(90deg, rgba(255, 253, 252, 0.94) 8%, rgba(255, 250, 248, 0.6) 46%, transparent 78%);
}

/* картинка героя живёт справа и мягко растворяется в облаке */
body[data-page="home"] .hero-media {
  left: 34%;
  opacity: 0.92;
  mix-blend-mode: normal;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  filter: saturate(102%) brightness(1.03) contrast(0.97);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 52%);
}

body[data-page="home"] .hero-media::before {
  background: linear-gradient(
    92deg,
    rgba(255, 251, 249, 0.9) 0%,
    rgba(255, 249, 247, 0.62) 24%,
    rgba(255, 246, 246, 0.24) 52%,
    rgba(255, 242, 246, 0.16) 78%,
    rgba(255, 238, 243, 0.36) 100%
  );
}

body[data-page="home"] .hero-media::after {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 247, 0.5) 0%,
    transparent 32%,
    transparent 62%,
    rgba(255, 240, 244, 0.72) 100%
  );
}

body[data-page="home"] .hero-media--brand,
body[data-page="home"] .hero-media--music-studio,
body[data-page="home"] .hero-media--image,
body[data-page="home"] .hero-media--video {
  filter: saturate(102%) brightness(1.08) contrast(0.95);
}

body[data-page="home"] .hero-banner {
  height: 402px;
  min-height: 402px;
  padding: 40px 44px;
}

body[data-page="home"] .eyebrow {
  align-self: flex-start;
  margin: 10px 0 16px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

body[data-page="home"] .hero-banner .primary-btn {
  align-self: flex-start;
}

.eyebrow,
body[data-page="home"] .eyebrow {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose-600);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* статичный ярлык на страницах документов — компактная пилюля, а не полоса */
.eyebrow--static {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

body[data-page="home"] .eyebrow::before {
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(255, 190, 214, 0.34);
}

.hero-banner h1,
body[data-page="home"] .hero-banner h1,
body[data-page="home"] .hero-banner[data-hero-variant="brand"] h1,
body[data-page="home"] .hero-banner[data-hero-variant="music"] h1,
body[data-page="home"] .hero-banner[data-hero-variant="image"] h1,
body[data-page="home"] .hero-banner[data-hero-variant="video"] h1 {
  color: var(--ink-strong);
  letter-spacing: -0.045em;
  text-shadow: none;
}

.gradient-text,
body[data-page="home"] .gradient-text,
body[data-page="home"] .hero-banner h1 .gradient-text {
  background: linear-gradient(104deg, #ff9a71 0%, #f7749f 46%, #c98bf0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sh-shimmer 8s ease-in-out infinite;
}

.hero-text,
body[data-page="home"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="brand"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="music"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="image"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .hero-text {
  color: var(--ink-soft);
  text-shadow: none;
}

body[data-page="home"] .hero-banner .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="brand"] .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="music"] .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="image"] .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .primary-btn {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.hero-dot,
body[data-page="home"] .hero-dot {
  border: 0;
  background: rgba(238, 168, 192, 0.42);
  transition: all var(--dur) var(--ease);
}

body[data-page="home"] .hero-dot:hover {
  background: rgba(238, 130, 168, 0.7);
}

.hero-dot--active,
body[data-page="home"] .hero-dot--active {
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(247, 139, 178, 0.42);
}

/* -------------------------------------------------------------------------
   7b. Главная — два промо-баннера, один под другим
   ------------------------------------------------------------------------- */

.hero-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

body[data-page="home"] .hero-banner--split {
  height: 372px;
  min-height: 372px;
  margin-bottom: 0;
  padding: 30px 32px;
  border-radius: var(--r-lg);
}

body[data-page="home"] .hero-banner--split .hero-overlay {
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

body[data-page="home"] .hero-banner--split .hero-media {
  left: 42%;
  opacity: 0.86;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 64%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 64%);
}

/* «фирменный» слайд был тёмно-синим — перекрашиваем полосы в палитру персика и розы */
body[data-page="home"] .hero-media--brand {
  background-color: #fff3f5;
  background-image: linear-gradient(
    118deg,
    rgba(255, 214, 191, 0.95) 0 52%,
    rgba(250, 178, 210, 0.95) 52% 60%,
    rgba(228, 212, 255, 0.95) 60% 70%,
    rgba(255, 200, 220, 0.95) 70% 79%,
    rgba(255, 228, 214, 0.95) 79% 100%
  );
  filter: none;
}

body[data-page="home"] .hero-media--brand::before {
  background: linear-gradient(90deg, rgba(255, 251, 249, 0.85) 0%, rgba(255, 249, 247, 0.5) 30%, transparent 62%);
}

body[data-page="home"] .hero-media--brand::after {
  background: radial-gradient(circle at 74% 40%, rgba(255, 255, 255, 0.55), transparent 22%);
  box-shadow: none;
}

body[data-page="home"] .hero-banner--split .eyebrow {
  margin: 2px 0 14px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

body[data-page="home"] .hero-banner--split :is(h1, h2),
body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
  margin: 0 0 12px;
  max-width: 78%;
  color: var(--ink-strong);
  font-size: clamp(1.7rem, 2.25vw, 2.45rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body[data-page="home"] .hero-banner--split .hero-text,
body[data-page="home"] .hero-banner--split[data-hero-variant] .hero-text {
  margin: 0 0 18px;
  max-width: 76%;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

body[data-page="home"] .hero-banner--split .primary-btn,
body[data-page="home"] .hero-banner--split[data-hero-variant] .primary-btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.94rem;
}

body[data-page="home"] .hero-banner--split .hero-slides {
  right: 20px;
  bottom: 18px;
  gap: 8px;
}

/* мягкая смена слайда */
body[data-page="home"] .hero-banner.is-changing .hero-media {
  animation: sh-fade 0.7s var(--ease-out);
}

body[data-page="home"] .hero-banner.is-changing .hero-overlay {
  animation: sh-rise 0.55s var(--ease-out);
}

/* Первый слайд: персональная песня к юбилею */
body[data-page="home"] .hero-media--gift-song,
body[data-page="home"] .hero-media--gift-newlyweds,
body[data-page="home"] .hero-media--gift-dad-defender,
body[data-page="home"] .hero-media--gift-friend-prank,
body[data-page="home"] .hero-media--gift-clip,
body[data-page="home"] .hero-media--gift-streaming,
body[data-page="home"] .hero-media--gift-page {
  left: 34%;
  opacity: 1;
  background-position: right bottom;
  background-size: auto 108%;
  filter: none;
}

body[data-page="home"] .hero-media--gift-song {
  background-image: url("../assets/hero/mom-anniversary-song.png");
}

body[data-page="home"] .hero-media--gift-newlyweds {
  background-image: url("../assets/hero/newlyweds-song.png");
}

body[data-page="home"] .hero-media--gift-dad-defender {
  background-image: url("../assets/hero/dad-defender-song-contrast-v3.png");
}

body[data-page="home"] .hero-media--gift-friend-prank {
  background-image: url("../assets/hero/friend-prank-song-v1.png");
}

body[data-page="home"] .hero-media--gift-clip {
  background-image: url("../assets/hero/gift-clip-photo-to-singer-full-body-v3.png");
}

body[data-page="home"] .hero-media--gift-streaming {
  background-image: url("../assets/hero/gift-song-streaming-grandma-v1.png");
  /* В исходной иллюстрации есть тёмная подсветка слева: сильнее растворяем её в фоне баннера. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.68) 52%, #000 64%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.68) 52%, #000 64%);
}

body[data-page="home"] .hero-media--gift-page {
  background-image: url("../assets/hero/gift-page-interactive-computer-polished-v8.png");
  background-size: auto 100%;
}

/* Интерактивная страница — сохраняем яркость иллюстрации. */
body[data-page="home"] .hero-banner--split .hero-media--gift-page {
  opacity: 1;
  filter: saturate(118%) brightness(108%) contrast(96%);
}

body[data-page="home"] .hero-media--gift-song::before,
body[data-page="home"] .hero-media--gift-song::after,
body[data-page="home"] .hero-media--gift-newlyweds::before,
body[data-page="home"] .hero-media--gift-newlyweds::after,
body[data-page="home"] .hero-media--gift-dad-defender::before,
body[data-page="home"] .hero-media--gift-dad-defender::after,
body[data-page="home"] .hero-media--gift-friend-prank::before,
body[data-page="home"] .hero-media--gift-friend-prank::after,
body[data-page="home"] .hero-media--gift-clip::before,
body[data-page="home"] .hero-media--gift-clip::after,
body[data-page="home"] .hero-media--gift-streaming::before,
body[data-page="home"] .hero-media--gift-streaming::after,
body[data-page="home"] .hero-media--gift-page::before,
body[data-page="home"] .hero-media--gift-page::after {
  content: none;
}

body[data-page="home"] .hero-banner[data-hero-variant="gift"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-clip"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-streaming"] :is(h1, h2),
body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] :is(h1, h2) {
  max-width: 54%;
}

body[data-page="home"] .hero-banner[data-hero-variant="gift"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-clip"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-streaming"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] .hero-text {
  max-width: 48%;
}

@media (max-width: 1240px) {
  body[data-page="home"] .hero-banner--split :is(h1, h2),
  body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
    max-width: 86%;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
  }
}

@media (max-width: 1100px) {
  .hero-duo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="home"] .hero-banner--split {
    height: 320px;
    min-height: 320px;
  }

  body[data-page="home"] .hero-banner--split :is(h1, h2),
  body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
    max-width: 70%;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
  }
}

@media (max-width: 760px) {
  .hero-duo {
    gap: 14px;
    margin-bottom: 18px;
  }

  body[data-page="home"] .hero-banner--split {
    height: auto;
    min-height: 300px;
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  body[data-page="home"] .hero-banner--split .hero-media {
    left: 34%;
    opacity: 0.5;
  }

  body[data-page="home"] .hero-banner--split :is(h1, h2),
  body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
    max-width: 100%;
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  body[data-page="home"] .hero-banner--split .hero-text,
  body[data-page="home"] .hero-banner--split[data-hero-variant] .hero-text {
    max-width: 100%;
    font-size: 0.9rem;
  }

  body[data-page="home"] .hero-media--gift-song,
  body[data-page="home"] .hero-media--gift-newlyweds,
  body[data-page="home"] .hero-media--gift-dad-defender,
  body[data-page="home"] .hero-media--gift-friend-prank,
  body[data-page="home"] .hero-media--gift-clip,
  body[data-page="home"] .hero-media--gift-streaming,
  body[data-page="home"] .hero-media--gift-page {
    left: 26%;
    opacity: 0.46;
    background-size: auto 84%;
  }

  body[data-page="home"] .hero-media--gift-dad-defender {
    opacity: 0.58;
  }

  body[data-page="home"] .hero-media--gift-page {
    background-size: auto 100%;
  }

  body[data-page="home"] .hero-banner--split .hero-media--gift-page {
    opacity: 0.72;
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-clip"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-streaming"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] :is(h1, h2),
  body[data-page="home"] .hero-banner[data-hero-variant="gift"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-clip"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-streaming"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] .hero-text {
    max-width: 76%;
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] :is(h1, h2) {
    max-width: 58%;
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-newlyweds"] .hero-text {
    max-width: 49%;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] :is(h1, h2) {
    max-width: 58%;
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-dad-defender"] .hero-text {
    max-width: 49%;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] :is(h1, h2) {
    max-width: 54%;
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-friend-prank"] .hero-text {
    max-width: 49%;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] :is(h1, h2) {
    max-width: 60%;
    font-size: clamp(1.15rem, 5.2vw, 1.48rem);
  }

  body[data-page="home"] .hero-banner[data-hero-variant="gift-page"] .hero-text {
    max-width: 53%;
    font-size: 0.76rem;
    line-height: 1.36;
  }
}

/* -------------------------------------------------------------------------
   7c. Главная — комплект к готовой песне
   ------------------------------------------------------------------------- */

body[data-page="home"] .delivery-kit {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.7fr);
  gap: 28px 34px;
  margin: 0 0 30px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 93% 10%, rgba(255, 197, 218, 0.38), transparent 26%),
    radial-gradient(circle at 7% 100%, rgba(232, 215, 255, 0.36), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 241, 0.82));
  box-shadow: var(--sh-sm), var(--sh-inset);
}

body[data-page="home"] .delivery-kit::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -84px;
  right: 30%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 201, 221, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 213, 230, 0.14), 0 0 0 52px rgba(255, 225, 236, 0.1);
}

body[data-page="home"] .delivery-kit__head {
  align-self: center;
}

body[data-page="home"] .delivery-kit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page="home"] .delivery-kit__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 5px rgba(252, 147, 177, 0.14);
}

body[data-page="home"] .delivery-kit h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 2.15vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

body[data-page="home"] .delivery-kit__head > p:last-child {
  max-width: 42ch;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.52;
}

body[data-page="home"] .delivery-kit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="home"] .delivery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 218px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--sh-xs), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .delivery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 184, 209, 0.82);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .delivery-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 195, 164, 0.9), rgba(248, 154, 196, 0.88));
  box-shadow: 0 10px 20px rgba(229, 108, 144, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #fff;
}

body[data-page="home"] .delivery-card__icon svg {
  width: 24px;
  height: 24px;
}

body[data-page="home"] .delivery-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body[data-page="home"] .delivery-card p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.48;
}

@media (max-width: 1180px) {
  body[data-page="home"] .delivery-kit {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .delivery-kit__head > p:last-child {
    max-width: 65ch;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .delivery-kit {
    gap: 20px;
    margin-bottom: 22px;
    padding: 21px 18px;
    border-radius: var(--r-lg);
  }

  body[data-page="home"] .delivery-kit h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  body[data-page="home"] .delivery-kit__grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .delivery-card {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }
}

/* -------------------------------------------------------------------------
   8. Главная — лента шаблонов песен
   ------------------------------------------------------------------------- */

body[data-page="home"] .song-template-carousel {
  position: relative;
  isolation: isolate;
  margin: 0 0 30px;
  padding: 24px 26px 22px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 198, 219, 0.42), transparent 29%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 240, 0.82));
  box-shadow: var(--sh-sm), var(--sh-inset);
}

body[data-page="home"] .song-template-carousel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -92px;
  right: 20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 211, 189, 0.28);
  filter: blur(8px);
}

body[data-page="home"] .song-template-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

body[data-page="home"] .song-template-carousel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page="home"] .song-template-carousel__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 5px rgba(252, 147, 177, 0.14);
}

body[data-page="home"] .song-template-carousel h2 {
  max-width: 740px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

body[data-page="home"] .song-template-carousel__nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

body[data-page="home"] .song-template-carousel__arrow {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--rose-600);
  box-shadow: var(--sh-xs);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .song-template-carousel__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #fff;
  color: var(--rose-700);
  box-shadow: var(--sh-sm);
}

body[data-page="home"] .song-template-carousel__arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

body[data-page="home"] .song-template-carousel__rail {
  display: flex;
  gap: 12px;
  margin: 0 -4px -9px;
  padding: 4px 4px 13px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(241, 142, 174, 0.42) transparent;
  scrollbar-width: thin;
}

body[data-page="home"] .song-template-carousel__rail::-webkit-scrollbar {
  height: 5px;
}

body[data-page="home"] .song-template-carousel__rail::-webkit-scrollbar-track {
  background: transparent;
}

body[data-page="home"] .song-template-carousel__rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(241, 142, 174, 0.42);
}

body[data-page="home"] .song-template-card {
  --story-accent: #ef719a;
  --story-tint: #ffd6df;
  --story-tint-strong: #ffa6bb;
  --story-light: #fff4f7;
  position: relative;
  display: flex;
  flex: 0 0 clamp(142px, 12.4vw, 178px);
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 89% 13%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 25%, rgba(255, 255, 255, 0.76) 0 3px, transparent 4px),
    linear-gradient(145deg, var(--story-light), var(--story-tint));
  box-shadow: 0 12px 24px rgba(178, 104, 135, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--ink-strong);
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .song-template-card::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  width: 103px;
  height: 103px;
  border: 13px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), transparent 31%);
  transform: translateX(-50%);
}

body[data-page="home"] .song-template-card:nth-child(3n + 2) {
  --story-accent: #ef996c;
  --story-tint: #ffe0c6;
  --story-tint-strong: #ffc093;
  --story-light: #fff8ef;
}

body[data-page="home"] .song-template-card:nth-child(3n) {
  --story-accent: #a678d5;
  --story-tint: #ead8fa;
  --story-tint-strong: #c49ced;
  --story-light: #fbf6ff;
}

body[data-page="home"] .song-template-card__art {
  position: absolute;
  z-index: 1;
  top: 39px;
  left: 50%;
  width: 104px;
  height: 83px;
  pointer-events: none;
  transform: translateX(-50%);
}

body[data-page="home"] .song-template-card__art i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

body[data-page="home"] .song-template-card--birthday .song-template-card__art::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 16px;
  width: 72px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 13px 13px 18px 18px;
  background:
    radial-gradient(ellipse at 13% 2%, #fff3e5 0 7%, transparent 8%),
    radial-gradient(ellipse at 34% 2%, #fff3e5 0 7%, transparent 8%),
    radial-gradient(ellipse at 55% 2%, #fff3e5 0 7%, transparent 8%),
    radial-gradient(ellipse at 77% 2%, #fff3e5 0 7%, transparent 8%),
    linear-gradient(#fff6e9 0 30%, #ffad93 31% 59%, #f677a2 60%);
  box-shadow: 0 9px 13px rgba(204, 92, 120, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

body[data-page="home"] .song-template-card--birthday .song-template-card__art::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 9px;
  width: 86px;
  height: 8px;
  border-radius: 50%;
  background: rgba(221, 107, 142, 0.2);
  filter: blur(3px);
}

body[data-page="home"] .song-template-card--birthday .song-template-card__art i {
  z-index: 1;
  bottom: 39px;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(#ffd992, #f4789c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body[data-page="home"] .song-template-card--birthday .song-template-card__art i::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 6px;
  height: 9px;
  border-radius: 70% 30% 70% 30%;
  background: #fff6a6;
  box-shadow: 0 0 8px rgba(255, 220, 108, 0.8);
  transform: rotate(45deg);
}

body[data-page="home"] .song-template-card--birthday .song-template-card__art i:nth-child(1) { left: 37px; }
body[data-page="home"] .song-template-card--birthday .song-template-card__art i:nth-child(2) { left: 49px; height: 27px; }
body[data-page="home"] .song-template-card--birthday .song-template-card__art i:nth-child(3) { left: 61px; }

body[data-page="home"] .song-template-card--wedding .song-template-card__art::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 29px;
  width: 68px;
  height: 57px;
  border-radius: 55% 55% 46% 46%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.85), transparent 4px), linear-gradient(145deg, #ffc9ce, #f58aab);
  opacity: 0.84;
  transform: rotate(-8deg);
}

body[data-page="home"] .song-template-card--wedding .song-template-card__art i {
  top: 27px;
  width: 47px;
  height: 47px;
  border: 8px solid #ffd38f;
  border-radius: 50%;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.82), 0 6px 10px rgba(204, 142, 66, 0.25);
}

body[data-page="home"] .song-template-card--wedding .song-template-card__art i:nth-child(1) { left: 17px; transform: rotate(-24deg); }
body[data-page="home"] .song-template-card--wedding .song-template-card__art i:nth-child(2) { right: 15px; border-color: #f8b870; transform: rotate(24deg); }

body[data-page="home"] .song-template-card--joke .song-template-card__art {
  width: 77px;
  height: 77px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffca7a, #ff807a 68%, #ee6ca6);
  box-shadow: 0 11px 16px rgba(207, 101, 120, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .song-template-card--joke .song-template-card__art::before {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 34px;
  height: 17px;
  border: 4px solid #723347;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

body[data-page="home"] .song-template-card--joke .song-template-card__art::after {
  content: "";
  position: absolute;
  right: -11px;
  top: -8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffe9a3;
  box-shadow: -11px 13px 0 -5px #f58aab, -51px -7px 0 -6px #ffefca;
}

body[data-page="home"] .song-template-card--joke .song-template-card__art i {
  top: 27px;
  width: 9px;
  height: 13px;
  border-radius: 50%;
  background: #723347;
}

body[data-page="home"] .song-template-card--joke .song-template-card__art i:nth-child(1) { left: 23px; }
body[data-page="home"] .song-template-card--joke .song-template-card__art i:nth-child(2) { right: 22px; transform: rotate(42deg); }

body[data-page="home"] .song-template-card--friendship .song-template-card__art::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 29px;
  width: 48px;
  height: 40px;
  border-radius: 54% 46% 52% 48%;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-22deg);
}

body[data-page="home"] .song-template-card--friendship .song-template-card__art::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ff9a91, #ec61a6);
  transform: rotate(-45deg);
}

body[data-page="home"] .song-template-card--friendship .song-template-card__art i {
  bottom: 8px;
  width: 39px;
  height: 47px;
  border-radius: 19px 19px 11px 11px;
  background: linear-gradient(145deg, #ff9f87, #f276a1);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.43), 0 7px 10px rgba(183, 85, 121, 0.17);
}

body[data-page="home"] .song-template-card--friendship .song-template-card__art i::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 5px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd3b7, #ffa188);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .song-template-card--friendship .song-template-card__art i:nth-child(1) { left: 16px; transform: rotate(-6deg); }
body[data-page="home"] .song-template-card--friendship .song-template-card__art i:nth-child(2) { right: 14px; background: linear-gradient(145deg, #ffb17f, #e977ae); transform: rotate(8deg); }

body[data-page="home"] .song-template-card--anniversary .song-template-card__art i {
  top: 23px;
  left: 31px;
  width: 43px;
  height: 43px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffae82, #ee619e);
  box-shadow: 0 10px 15px rgba(193, 79, 123, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.53);
  transform: rotate(-45deg);
}

body[data-page="home"] .song-template-card--anniversary .song-template-card__art i::before,
body[data-page="home"] .song-template-card--anniversary .song-template-card__art i::after {
  content: "";
  position: absolute;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: inherit;
}

body[data-page="home"] .song-template-card--anniversary .song-template-card__art i::before { top: -20px; left: 0; }
body[data-page="home"] .song-template-card--anniversary .song-template-card__art i::after { top: 0; left: 20px; }

body[data-page="home"] .song-template-card--confession .song-template-card__art::before {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 16px;
  width: 72px;
  height: 49px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  background: linear-gradient(145deg, #ffb992, #f46ca2);
  box-shadow: 0 10px 16px rgba(195, 83, 124, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .song-template-card--confession .song-template-card__art::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 28px;
  width: 48px;
  height: 25px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 0 0 30px 30px;
  transform: rotate(-10deg);
}

body[data-page="home"] .song-template-card--confession .song-template-card__art i {
  top: 4px;
  left: 44px;
  width: 21px;
  height: 21px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ff8e83, #ec55a4);
  box-shadow: 0 5px 9px rgba(211, 87, 132, 0.2);
  transform: rotate(-45deg);
}

body[data-page="home"] .song-template-card--confession .song-template-card__art i:nth-child(2) {
  top: 20px;
  left: 74px;
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

body[data-page="home"] .song-template-card--apology .song-template-card__art {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 208, 183, 0.82), rgba(245, 173, 210, 0.82));
}

body[data-page="home"] .song-template-card--apology .song-template-card__art::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 67px;
  height: 45px;
  border-radius: 18px 18px 18px 4px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 15px rgba(166, 95, 138, 0.13);
}

body[data-page="home"] .song-template-card--apology .song-template-card__art::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 32px;
  width: 39px;
  height: 3px;
  border-radius: 999px;
  background: #f185a8;
  box-shadow: 0 9px 0 #f9b680;
}

body[data-page="home"] .song-template-card--apology .song-template-card__art i {
  top: 8px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: #ee629e;
  transform: rotate(-45deg);
}

body[data-page="home"] .song-template-card--apology .song-template-card__art i:nth-child(2) {
  top: 62px;
  left: 9px;
  width: 8px;
  height: 8px;
  background: #ffb36f;
}

body[data-page="home"] .song-template-card--kids .song-template-card__art::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 19px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: conic-gradient(from 25deg, #ff8fa0, #ffcc77, #c89af0, #79cbe3, #ff8fa0);
  box-shadow: 0 10px 15px rgba(144, 101, 185, 0.17), inset 0 0 0 7px rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .song-template-card--kids .song-template-card__art::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 36px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff9ef;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85);
}

body[data-page="home"] .song-template-card--kids .song-template-card__art i {
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(153, 93, 157, 0.16);
}

body[data-page="home"] .song-template-card--kids .song-template-card__art i:nth-child(1) { top: 34px; left: 44px; background: #ff9b91; transform: rotate(14deg); }
body[data-page="home"] .song-template-card--kids .song-template-card__art i:nth-child(2) { top: 24px; left: 58px; background: #f7c764; transform: rotate(-14deg); }
body[data-page="home"] .song-template-card--kids .song-template-card__art i:nth-child(3) { top: 45px; left: 58px; background: #aa83df; transform: rotate(26deg); }

body[data-page="home"] .song-template-card--support .song-template-card__art::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 19px;
  width: 66px;
  height: 57px;
  border-radius: 48% 52% 46% 54%;
  background: linear-gradient(145deg, #b99be9, #e677ae);
  box-shadow: 0 10px 16px rgba(139, 91, 171, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.47);
}

body[data-page="home"] .song-template-card--support .song-template-card__art::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 42px;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: #fff4e8;
  transform: rotate(-45deg);
}

body[data-page="home"] .song-template-card--support .song-template-card__art i {
  bottom: 2px;
  left: 9px;
  width: 35px;
  height: 20px;
  border-radius: 20px 7px 17px 17px;
  background: linear-gradient(145deg, #ffb78e, #f27aa4);
  transform: rotate(-12deg);
}

body[data-page="home"] .song-template-card--support .song-template-card__art i:nth-child(2) {
  right: 7px;
  left: auto;
  transform: rotate(12deg) scaleX(-1);
}

body[data-page="home"] .song-template-card__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  color: var(--story-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .song-template-card__number::after {
  content: "";
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body[data-page="home"] .song-template-card__title {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

body[data-page="home"] .song-template-card__arrow {
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 12px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: var(--story-accent);
  font-size: 0.9rem;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

body[data-page="home"] .song-template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 182, 205, 0.9);
  box-shadow: 0 15px 26px rgba(178, 104, 135, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .song-template-card:hover .song-template-card__arrow {
  transform: translate(2px, -2px);
  background: #fff;
}

body[data-page="home"] .song-template-card:focus-visible,
body[data-page="home"] .song-template-carousel__arrow:focus-visible {
  outline: 3px solid rgba(247, 119, 143, 0.4);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body[data-page="home"] .song-template-carousel {
    margin-bottom: 20px;
    padding: 20px 18px 17px;
    border-radius: var(--r-lg);
  }

  body[data-page="home"] .song-template-carousel__head {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 15px;
  }

  body[data-page="home"] .song-template-carousel h2 {
    font-size: 1.25rem;
  }

  body[data-page="home"] .song-template-carousel__arrow {
    width: 34px;
    height: 34px;
  }

  body[data-page="home"] .song-template-carousel__rail {
    gap: 10px;
  }

  body[data-page="home"] .song-template-card {
    flex-basis: 154px;
    min-height: 175px;
    padding: 14px;
    border-radius: 17px;
  }

  body[data-page="home"] .song-template-card__art {
    top: 34px;
    transform: translateX(-50%) scale(0.9);
  }
}

/* -------------------------------------------------------------------------
   9. Главная — коллаж возможностей
   ------------------------------------------------------------------------- */

body[data-page="home"] .tool-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, 128px);
  gap: 16px;
  margin: 0 0 34px;
}

body[data-page="home"] .tool-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: 0 16px 30px rgba(105, 61, 86, 0.15), var(--sh-inset);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(134, 83, 113, 0.2), var(--sh-inset);
}

body[data-page="home"] .tool-card:focus-visible {
  outline: 3px solid rgba(184, 69, 104, 0.42);
  outline-offset: 3px;
}

body[data-page="home"] .tool-card__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  transition: transform 600ms var(--ease-out);
}

body[data-page="home"] .tool-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 36%);
  pointer-events: none;
}

body[data-page="home"] .tool-card:hover .tool-card__media {
  transform: scale(1.045);
}

body[data-page="home"] .tool-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  min-width: 0;
  max-width: calc(100% - 32px);
  padding: 18px 24px;
  gap: 0;
  gap: 0;
}

body[data-page="home"] .tool-card__eyebrow {
  width: fit-content;
  margin: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-pill);
  background: rgba(38, 20, 42, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  opacity: 0.84;
  text-transform: uppercase;
}

body[data-page="home"] .tool-card strong {
  color: #fff;
  font-size: clamp(1.45rem, 2.25vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-shadow: 0 2px 16px rgba(50, 15, 36, 0.22);
}

body[data-page="home"] .tool-card__description {
  max-width: 28ch;
  margin-top: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.88;
}

body[data-page="home"] .tool-card--music {
  grid-column: 1 / 7;
  grid-row: 1;
  background: #32141f;
}

body[data-page="home"] .tool-card--music .tool-card__media {
  background:
    radial-gradient(circle at 78% 22%, rgba(160, 98, 184, 0.22), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(234, 108, 158, 0.12), transparent 32%),
    linear-gradient(128deg, #301029 0%, #581844 52%, #211122 100%);
}

body[data-page="home"] .tool-card--music .tool-card__content {
  max-width: 68%;
  padding: 26px;
}

body[data-page="home"] .tool-card--music strong {
  font-size: clamp(1.95rem, 3vw, 3.35rem);
}

body[data-page="home"] .tool-card--gift {
  grid-column: 7 / 10;
  grid-row: 1;
  background: #c64f78;
}

body[data-page="home"] .tool-card--gift .tool-card__media {
  background:
    radial-gradient(circle at 82% 25%, rgba(255, 197, 205, 0.54), transparent 24%),
    radial-gradient(circle at 77% 88%, rgba(255, 157, 108, 0.28), transparent 31%),
    linear-gradient(135deg, #9d315d 0%, #c64f78 53%, #ec8fa8 100%);
}

body[data-page="home"] .tool-card--gift .tool-card__content,
body[data-page="home"] .tool-card--voice .tool-card__content {
  max-width: 86%;
}

body[data-page="home"] .tool-card--voice {
  grid-column: 10 / -1;
  grid-row: 1;
  background: #5f57aa;
}

body[data-page="home"] .tool-card--voice .tool-card__media {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 207, 231, 0.46), transparent 24%),
    radial-gradient(circle at 91% 83%, rgba(164, 192, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #443b86 0%, #5f57aa 56%, #8c83d4 100%);
}

body[data-page="home"] .tool-card--avatar {
  grid-column: 1 / 4;
  grid-row: 2;
  background: #624fae;
}

body[data-page="home"] .tool-card--avatar .tool-card__media {
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 186, 223, 0.46), transparent 11%),
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(130deg, #443574 0%, #624fae 54%, #9a7bdb 100%);
}

body[data-page="home"] .tool-card--avatar::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 8%;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(255, 235, 248, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 220, 240, 0.08), 0 0 0 40px rgba(255, 220, 240, 0.05);
  transform: translateY(-50%);
}

body[data-page="home"] .tool-card--avatar .tool-card__content {
  max-width: 64%;
}

body[data-page="home"] .tool-card--video {
  grid-column: 4 / 8;
  grid-row: 2;
  background: #a33a68;
}

body[data-page="home"] .tool-card--video .tool-card__media {
  background:
    radial-gradient(circle at 84% 26%, rgba(255, 184, 214, 0.38), transparent 22%),
    radial-gradient(circle at 73% 85%, rgba(255, 177, 124, 0.28), transparent 26%),
    linear-gradient(135deg, #722348 0%, #a33a68 55%, #dc7da5 100%);
}

body[data-page="home"] .tool-card--video .tool-card__content {
  max-width: 58%;
}

body[data-page="home"] .tool-card--video::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 23%;
  right: 8%;
  width: 43%;
  height: 53%;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(251, 137, 174, 0.9), rgba(224, 99, 148, 0.58)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px 10px);
  box-shadow: 0 13px 24px rgba(176, 88, 127, 0.18);
  transform: rotate(5deg);
}

body[data-page="home"] .tool-card--animate {
  grid-column: 8 / -1;
  grid-row: 2;
  background: #2e786d;
}

body[data-page="home"] .tool-card--animate .tool-card__media {
  background:
    radial-gradient(circle at 79% 20%, rgba(186, 235, 222, 0.26), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(123, 218, 191, 0.2), transparent 32%),
    linear-gradient(135deg, #1b514b 0%, #2e786d 55%, #68b5a4 100%);
}

body[data-page="home"] .tool-card--animate .tool-card__content {
  max-width: 62%;
}

body[data-page="home"] .tool-card--animate:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
}

@media (max-width: 960px) {
  body[data-page="home"] .tool-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 252px repeat(3, 184px);
  }

  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--animate {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .tool-card--music {
    grid-row: 1;
  }

  body[data-page="home"] .tool-card--gift {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-page="home"] .tool-card--voice {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-page="home"] .tool-card--avatar {
    grid-column: 1;
    grid-row: 3;
  }

  body[data-page="home"] .tool-card--video {
    grid-column: 2;
    grid-row: 3;
  }

  body[data-page="home"] .tool-card--animate {
    grid-row: 4;
  }

  body[data-page="home"] .tool-card--music .tool-card__content {
    max-width: 54%;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .tool-collage {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 184px);
    gap: 12px;
    margin-bottom: 24px;
  }

  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    grid-column: auto;
    grid-row: auto;
    border-radius: 20px;
  }

  body[data-page="home"] .tool-card__content,
  body[data-page="home"] .tool-card--music .tool-card__content,
  body[data-page="home"] .tool-card--gift .tool-card__content,
  body[data-page="home"] .tool-card--voice .tool-card__content,
  body[data-page="home"] .tool-card--avatar .tool-card__content,
  body[data-page="home"] .tool-card--video .tool-card__content,
  body[data-page="home"] .tool-card--animate .tool-card__content {
    max-width: 64%;
    padding: 20px;
  }

  body[data-page="home"] .tool-card__eyebrow,
  body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__eyebrow {
    padding: 5px 7px;
    font-size: 0.56rem;
  }

  body[data-page="home"] .tool-card strong,
  body[data-page="home"] .tool-card--music strong {
    font-size: 1.75rem;
  }

  body[data-page="home"] .tool-card__description,
  body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__description {
    margin-top: 7px;
    font-size: 0.72rem;
  }

  body[data-page="home"] .tool-card--avatar .tool-card__media {
    background-position: center, center, right 6% top 22%;
    background-size: cover, cover, auto 166%;
  }

}

/* Горизонтальные сервисные полосы: разделяют контент вместо мозаики карточек. */
body[data-page="home"] .tool-collage {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 40px;
  border-top: 1px solid rgba(184, 69, 104, 0.18);
  border-bottom: 1px solid rgba(184, 69, 104, 0.18);
}

body[data-page="home"] .tool-card,
body[data-page="home"] .tool-card--music,
body[data-page="home"] .tool-card--gift,
body[data-page="home"] .tool-card--voice,
body[data-page="home"] .tool-card--avatar,
body[data-page="home"] .tool-card--video,
body[data-page="home"] .tool-card--animate {
  --lane-accent: #b84568;
  --lane-surface: rgba(255, 238, 242, 0.54);
  position: relative;
  display: block;
  min-height: 142px;
  padding: 24px 30px 24px 36px;
  overflow: hidden;
  color: var(--ink-strong);
  border: 0;
  border-bottom: 1px solid rgba(184, 69, 104, 0.14);
  border-radius: 0;
  background: linear-gradient(90deg, var(--lane-surface), rgba(255, 255, 255, 0.2));
  box-shadow: none;
  text-decoration: none;
  transform: none;
}

body[data-page="home"] .tool-card:last-child {
  border-bottom: 0;
}

body[data-page="home"] .tool-card--music { --lane-accent: #b84568; --lane-surface: rgba(255, 226, 235, 0.66); }
body[data-page="home"] .tool-card--gift { --lane-accent: #e27271; --lane-surface: rgba(255, 233, 221, 0.7); }
body[data-page="home"] .tool-card--voice { --lane-accent: #7158bd; --lane-surface: rgba(239, 232, 255, 0.72); }
body[data-page="home"] .tool-card--avatar { --lane-accent: #8068c5; --lane-surface: rgba(241, 236, 255, 0.66); }
body[data-page="home"] .tool-card--video { --lane-accent: #c25178; --lane-surface: rgba(255, 230, 239, 0.7); }
body[data-page="home"] .tool-card--animate { --lane-accent: #347e72; --lane-surface: rgba(224, 247, 239, 0.76); }

body[data-page="home"] .tool-card::before,
body[data-page="home"] .tool-card--avatar::before,
body[data-page="home"] .tool-card--video::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 4px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: var(--lane-accent);
  box-shadow: none;
  transform: none;
}

body[data-page="home"] .tool-card__media {
  display: none;
}

body[data-page="home"] .tool-card:hover {
  box-shadow: none;
  background: linear-gradient(90deg, var(--lane-surface), rgba(255, 255, 255, 0.62));
  transform: none;
}

body[data-page="home"] .tool-card__content,
body[data-page="home"] .tool-card--music .tool-card__content,
body[data-page="home"] .tool-card--gift .tool-card__content,
body[data-page="home"] .tool-card--voice .tool-card__content,
body[data-page="home"] .tool-card--avatar .tool-card__content,
body[data-page="home"] .tool-card--video .tool-card__content,
body[data-page="home"] .tool-card--animate .tool-card__content {
  display: grid;
  grid-template-columns: 138px minmax(210px, 0.88fr) minmax(270px, 1.12fr);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page="home"] .tool-card__eyebrow,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__eyebrow {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lane-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  opacity: 1;
  text-transform: uppercase;
}

body[data-page="home"] .tool-card strong,
body[data-page="home"] .tool-card--music strong {
  color: var(--ink-strong);
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-shadow: none;
}

body[data-page="home"] .tool-card__description,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__description {
  max-width: 38ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 1;
}

@media (max-width: 900px) {
  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    min-height: 124px;
    padding: 21px 24px 21px 30px;
  }

  body[data-page="home"] .tool-card__content,
  body[data-page="home"] .tool-card--music .tool-card__content,
  body[data-page="home"] .tool-card--gift .tool-card__content,
  body[data-page="home"] .tool-card--voice .tool-card__content,
  body[data-page="home"] .tool-card--avatar .tool-card__content,
  body[data-page="home"] .tool-card--video .tool-card__content,
  body[data-page="home"] .tool-card--animate .tool-card__content {
    grid-template-columns: 104px minmax(190px, 0.9fr) minmax(200px, 1.1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .tool-collage {
    margin-bottom: 28px;
  }

  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    min-height: 0;
    padding: 21px 18px 22px 26px;
  }

  body[data-page="home"] .tool-card__content,
  body[data-page="home"] .tool-card--music .tool-card__content,
  body[data-page="home"] .tool-card--gift .tool-card__content,
  body[data-page="home"] .tool-card--voice .tool-card__content,
  body[data-page="home"] .tool-card--avatar .tool-card__content,
  body[data-page="home"] .tool-card--video .tool-card__content,
  body[data-page="home"] .tool-card--animate .tool-card__content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="home"] .tool-card__eyebrow,
  body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__eyebrow {
    font-size: 0.64rem;
  }

  body[data-page="home"] .tool-card strong,
  body[data-page="home"] .tool-card--music strong {
    font-size: 1.68rem;
  }

  body[data-page="home"] .tool-card__description,
  body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__description {
    font-size: 0.82rem;
  }
}

/* Компактная яркая лента направлений. */
body[data-page="home"] .tool-collage {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.52fr 1.24fr 1.45fr 1.12fr;
  gap: 1px;
  min-height: 76px;
  margin: 0 0 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 28px rgba(147, 70, 105, 0.13), var(--sh-inset);
}

body[data-page="home"] .tool-card,
body[data-page="home"] .tool-card--music,
body[data-page="home"] .tool-card--gift,
body[data-page="home"] .tool-card--voice,
body[data-page="home"] .tool-card--avatar,
body[data-page="home"] .tool-card--video,
body[data-page="home"] .tool-card--animate {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  align-items: center;
  min-height: 74px;
  padding: 0 14px;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: var(--strip-fill);
  box-shadow: none;
  transform: none;
}

body[data-page="home"] .tool-card--music { --strip-fill: linear-gradient(110deg, #8f2c60, #c34e78); }
body[data-page="home"] .tool-card--gift { --strip-fill: linear-gradient(110deg, #d25a76, #ef8c96); }
body[data-page="home"] .tool-card--voice { --strip-fill: linear-gradient(110deg, #6254ad, #938bd9); }
body[data-page="home"] .tool-card--avatar { --strip-fill: linear-gradient(110deg, #745fc0, #a788dc); }
body[data-page="home"] .tool-card--video { --strip-fill: linear-gradient(110deg, #a23b67, #d66e99); }
body[data-page="home"] .tool-card--animate { --strip-fill: linear-gradient(110deg, #277767, #5bb69f); }

body[data-page="home"] .tool-card::before,
body[data-page="home"] .tool-card--avatar::before,
body[data-page="home"] .tool-card--video::before {
  display: none;
}

body[data-page="home"] .tool-card:hover {
  box-shadow: none;
  filter: saturate(112%) brightness(1.04);
  transform: none;
}

body[data-page="home"] .tool-card__content,
body[data-page="home"] .tool-card--music .tool-card__content,
body[data-page="home"] .tool-card--gift .tool-card__content,
body[data-page="home"] .tool-card--voice .tool-card__content,
body[data-page="home"] .tool-card--avatar .tool-card__content,
body[data-page="home"] .tool-card--video .tool-card__content,
body[data-page="home"] .tool-card--animate .tool-card__content {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page="home"] .tool-card__eyebrow,
body[data-page="home"] .tool-card__description,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) :is(.tool-card__eyebrow, .tool-card__description) {
  display: none;
}

body[data-page="home"] .tool-card strong,
body[data-page="home"] .tool-card--music strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: clamp(0.72rem, 1.08vw, 0.96rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body[data-page="home"] .tool-collage {
    grid-template-columns: repeat(6, max-content);
    min-height: 64px;
    margin-bottom: 24px;
    overflow-x: auto;
    border-radius: 16px;
  }

  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    min-height: 62px;
    padding: 0 16px;
  }

  body[data-page="home"] .tool-card strong,
  body[data-page="home"] .tool-card--music strong {
    font-size: 0.82rem;
  }
}

/* Возврат к яркому коллажу до экспериментов с сервисными полосами. */
body[data-page="home"] .tool-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, 128px);
  gap: 16px;
  min-height: 0;
  margin: 0 0 34px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .tool-card,
body[data-page="home"] .tool-card--music,
body[data-page="home"] .tool-card--gift,
body[data-page="home"] .tool-card--voice,
body[data-page="home"] .tool-card--avatar,
body[data-page="home"] .tool-card--video,
body[data-page="home"] .tool-card--animate {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: 0 16px 30px rgba(105, 61, 86, 0.15), var(--sh-inset);
  text-decoration: none;
}

body[data-page="home"] .tool-card::before {
  content: none;
}

body[data-page="home"] .tool-card:hover {
  background: transparent;
  box-shadow: 0 20px 36px rgba(134, 83, 113, 0.2), var(--sh-inset);
  filter: none;
  transform: translateY(-4px);
}

body[data-page="home"] .tool-card__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

body[data-page="home"] .tool-card__content,
body[data-page="home"] .tool-card--music .tool-card__content,
body[data-page="home"] .tool-card--gift .tool-card__content,
body[data-page="home"] .tool-card--voice .tool-card__content,
body[data-page="home"] .tool-card--avatar .tool-card__content,
body[data-page="home"] .tool-card--video .tool-card__content,
body[data-page="home"] .tool-card--animate .tool-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  min-width: 0;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 18px 24px;
  gap: 0;
}

body[data-page="home"] .tool-card__eyebrow,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__eyebrow {
  display: none;
  width: fit-content;
  margin: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-pill);
  background: rgba(38, 20, 42, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  opacity: 0.84;
  text-transform: uppercase;
}

body[data-page="home"] .tool-card strong,
body[data-page="home"] .tool-card--music strong {
  display: block;
  overflow: visible;
  color: #fff;
  font-size: clamp(1.02rem, 1.45vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  text-overflow: clip;
  text-shadow: 0 2px 16px rgba(50, 15, 36, 0.22);
  white-space: nowrap;
}

body[data-page="home"] .tool-card__description,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) .tool-card__description {
  display: none;
  max-width: 28ch;
  margin-top: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.88;
}

body[data-page="home"] .tool-card--music {
  grid-column: 1 / 7;
  grid-row: 1;
  background: #32141f;
}

body[data-page="home"] .tool-card--music .tool-card__content {
  max-width: calc(100% - 36px);
  padding: 18px 26px;
}

body[data-page="home"] .tool-card--music strong {
  font-size: clamp(1.18rem, 2vw, 2rem);
}

body[data-page="home"] .tool-card--gift {
  grid-column: 7 / 10;
  grid-row: 1;
  background: #c64f78;
}

body[data-page="home"] :is(.tool-card--gift, .tool-card--voice) .tool-card__content {
  max-width: calc(100% - 36px);
}

body[data-page="home"] .tool-card--voice {
  grid-column: 10 / -1;
  grid-row: 1;
  background: #5f57aa;
}

body[data-page="home"] .tool-card--avatar {
  grid-column: 1 / 4;
  grid-row: 2;
  background: #624fae;
}

body[data-page="home"] .tool-card--avatar::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto;
  top: 50%;
  right: 8%;
  display: block;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(255, 235, 248, 0.58);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 18px rgba(255, 220, 240, 0.08), 0 0 0 40px rgba(255, 220, 240, 0.05);
  transform: translateY(-50%);
}

body[data-page="home"] .tool-card--avatar .tool-card__content {
  max-width: calc(100% - 36px);
}

body[data-page="home"] .tool-card--video {
  grid-column: 4 / 8;
  grid-row: 2;
  background: #a33a68;
}

body[data-page="home"] .tool-card--video::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto;
  top: 23%;
  right: 8%;
  display: block;
  width: 43%;
  height: 53%;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(251, 137, 174, 0.9), rgba(224, 99, 148, 0.58)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px 10px);
  box-shadow: 0 13px 24px rgba(176, 88, 127, 0.18);
  transform: rotate(5deg);
}

body[data-page="home"] .tool-card--video .tool-card__content {
  max-width: 60%;
}

body[data-page="home"] .tool-card--animate {
  grid-column: 8 / -1;
  grid-row: 2;
  background: #2e786d;
}

body[data-page="home"] .tool-card--animate .tool-card__content {
  max-width: calc(100% - 36px);
}

@media (max-width: 960px) {
  body[data-page="home"] .tool-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 156px repeat(3, 118px);
  }

  body[data-page="home"] :is(.tool-card--music, .tool-card--animate) {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .tool-card--music { grid-row: 1; }
  body[data-page="home"] .tool-card--gift { grid-column: 1; grid-row: 2; }
  body[data-page="home"] .tool-card--voice { grid-column: 2; grid-row: 2; }
  body[data-page="home"] .tool-card--avatar { grid-column: 1; grid-row: 3; }
  body[data-page="home"] .tool-card--video { grid-column: 2; grid-row: 3; }
  body[data-page="home"] .tool-card--animate { grid-row: 4; }

  body[data-page="home"] .tool-card--music .tool-card__content {
    max-width: calc(100% - 48px);
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .tool-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 104px);
    gap: 12px;
    margin-bottom: 24px;
  }

  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    grid-column: auto;
    grid-row: auto;
    border-radius: 20px;
  }

  body[data-page="home"] .tool-card__content,
  body[data-page="home"] .tool-card--music .tool-card__content {
    max-width: calc(100% - 28px);
    padding: 16px 18px;
  }

  body[data-page="home"] .tool-card__eyebrow {
    display: none;
  }

  body[data-page="home"] .tool-card strong,
  body[data-page="home"] .tool-card--music strong {
    font-size: 1.04rem;
  }

  body[data-page="home"] .tool-card__description {
    display: none;
  }

  body[data-page="home"] .tool-card--avatar .tool-card__media {
    background-position: center, center, right 6% top 22%;
    background-size: cover, cover, auto 166%;
  }
}

/* Компактные кнопки-направления на главной. */
body[data-page="home"] .tool-collage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0 0 26px;
}

body[data-page="home"] .tool-card,
body[data-page="home"] .tool-card--music,
body[data-page="home"] .tool-card--gift,
body[data-page="home"] .tool-card--voice,
body[data-page="home"] .tool-card--avatar,
body[data-page="home"] .tool-card--video,
body[data-page="home"] .tool-card--animate {
  display: inline-flex;
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--r-pill);
  background: var(--tool-button-fill);
  box-shadow: 0 8px 18px rgba(105, 61, 86, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: none;
}

body[data-page="home"] .tool-card--music { --tool-button-fill: linear-gradient(110deg, #5b1749, #983761); }
body[data-page="home"] .tool-card--gift { --tool-button-fill: linear-gradient(110deg, #b94168, #ed7899); }
body[data-page="home"] .tool-card--voice { --tool-button-fill: linear-gradient(110deg, #5150a1, #786fcb); }
body[data-page="home"] .tool-card--avatar { --tool-button-fill: linear-gradient(110deg, #6954b6, #9980d7); }
body[data-page="home"] .tool-card--video { --tool-button-fill: linear-gradient(110deg, #9b3b68, #d26d99); }
body[data-page="home"] .tool-card--animate { --tool-button-fill: linear-gradient(110deg, #277567, #57ad98); }

body[data-page="home"] :is(.tool-card, .tool-card--avatar, .tool-card--video)::before,
body[data-page="home"] .tool-card__media {
  display: none;
}

body[data-page="home"] .tool-card__content,
body[data-page="home"] .tool-card--music .tool-card__content,
body[data-page="home"] .tool-card--gift .tool-card__content,
body[data-page="home"] .tool-card--voice .tool-card__content,
body[data-page="home"] .tool-card--avatar .tool-card__content,
body[data-page="home"] .tool-card--video .tool-card__content,
body[data-page="home"] .tool-card--animate .tool-card__content {
  display: flex;
  align-items: center;
  align-self: auto;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 0;
}

body[data-page="home"] .tool-card__eyebrow,
body[data-page="home"] .tool-card__description,
body[data-page="home"] :is(.tool-card--video, .tool-card--animate) :is(.tool-card__eyebrow, .tool-card__description) {
  display: none;
}

body[data-page="home"] .tool-card strong,
body[data-page="home"] .tool-card--music strong {
  color: #fff;
  font-size: clamp(0.76rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

body[data-page="home"] .tool-card:hover {
  background: var(--tool-button-fill);
  box-shadow: 0 11px 22px rgba(105, 61, 86, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06) saturate(1.04);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  body[data-page="home"] .tool-collage {
    gap: 8px;
    margin-bottom: 22px;
  }

  body[data-page="home"] .tool-card,
  body[data-page="home"] .tool-card--music,
  body[data-page="home"] .tool-card--gift,
  body[data-page="home"] .tool-card--voice,
  body[data-page="home"] .tool-card--avatar,
  body[data-page="home"] .tool-card--video,
  body[data-page="home"] .tool-card--animate {
    min-height: 40px;
    padding: 0 14px;
  }

  body[data-page="home"] .tool-card strong,
  body[data-page="home"] .tool-card--music strong {
    font-size: 0.78rem;
  }
}

/* -------------------------------------------------------------------------
   10. Главная — ключевой заголовок и пример песни
   ------------------------------------------------------------------------- */

body[data-page="home"] .home-key-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

body[data-page="home"] .home-key-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.9rem, 3.1vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
}

body[data-page="home"] .home-key-heading h2 span {
  color: var(--accent-text);
}

body[data-page="home"] .song-example {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 30px;
  padding: 18px 22px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 85% 120%, rgba(255, 180, 202, 0.3), transparent 27%),
    radial-gradient(circle at 61% -45%, rgba(255, 216, 171, 0.32), transparent 31%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.95), rgba(255, 242, 245, 0.86));
  box-shadow: var(--sh-sm), var(--sh-inset);
}

body[data-page="home"] .song-example::before {
  content: "";
  position: absolute;
  top: -135px;
  right: 10%;
  width: 340px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 218, 228, 0.42);
  filter: blur(14px);
  pointer-events: none;
}

body[data-page="home"] .song-example__cover {
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background:
    radial-gradient(circle at 81% 22%, rgba(255, 243, 190, 0.96), transparent 23%),
    linear-gradient(145deg, #ff996d 0%, #f76e9c 55%, #b868c5 118%);
  box-shadow: 0 14px 27px rgba(186, 86, 122, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
  isolation: isolate;
}

body[data-page="home"] .song-example__cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -36px;
  bottom: -42px;
  width: 124px;
  height: 124px;
  border: 17px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

body[data-page="home"] .song-example__cover-glow {
  position: absolute;
  z-index: -1;
  top: -40px;
  right: -24px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(255, 252, 224, 0.5);
  filter: blur(5px);
}

body[data-page="home"] .song-example__cover-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  opacity: 0.92;
  text-transform: uppercase;
}

body[data-page="home"] .song-example__cover-title {
  position: relative;
  z-index: 1;
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

body[data-page="home"] .song-example__cover-mark {
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.87rem;
  font-weight: 800;
  font-style: italic;
}

body[data-page="home"] .song-example__cover-note {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

body[data-page="home"] .song-example__cover-note--one {
  top: 45px;
  right: 22px;
  font-size: 1.3rem;
  transform: rotate(-17deg);
}

body[data-page="home"] .song-example__cover-note--two {
  right: 47px;
  bottom: 33px;
  font-size: 1rem;
  transform: rotate(12deg);
}

body[data-page="home"] .song-example__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body[data-page="home"] .song-example__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--accent-text);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .song-example__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 5px rgba(252, 147, 177, 0.14);
}

body[data-page="home"] .song-example__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body[data-page="home"] .song-example h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.24rem, 1.7vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

body[data-page="home"] .song-example__title-row p {
  max-width: 590px;
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

body[data-page="home"] .song-example__duration {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(245, 151, 179, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--rose-600);
  font-size: 0.7rem;
  font-weight: 800;
}

body[data-page="home"] .song-example__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 35px;
  margin: 11px 0 7px;
  overflow: hidden;
}

body[data-page="home"] .song-example__wave span {
  width: 3px;
  height: 11px;
  flex: 0 0 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff916f, #e85cad);
  opacity: 0.8;
}

body[data-page="home"] .song-example__wave span:nth-child(4n + 1) { height: 18px; }
body[data-page="home"] .song-example__wave span:nth-child(5n + 2) { height: 28px; }
body[data-page="home"] .song-example__wave span:nth-child(6n + 3) { height: 13px; }
body[data-page="home"] .song-example__wave span:nth-child(7n + 4) { height: 23px; }
body[data-page="home"] .song-example__wave span:nth-child(8n + 5) { height: 8px; }

body[data-page="home"] .song-example__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="home"] .song-example__meta span + span::before {
  content: "•";
  margin: 0 8px;
  color: rgba(239, 119, 153, 0.72);
}

body[data-page="home"] .song-example__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 15px 0 11px;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 11px 22px rgba(236, 94, 145, 0.23);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .song-example__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 27px rgba(236, 94, 145, 0.31);
}

body[data-page="home"] .song-example__cta-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

body[data-page="home"] .song-example__cta-arrow {
  font-size: 1rem;
  transition: transform var(--dur) var(--ease);
}

body[data-page="home"] .song-example__cta:hover .song-example__cta-arrow {
  transform: translateX(3px);
}

body[data-page="home"] .song-example__cta:focus-visible {
  outline: 3px solid rgba(247, 119, 143, 0.4);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  body[data-page="home"] .song-example {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  body[data-page="home"] .song-example__cover {
    min-height: 124px;
  }

  body[data-page="home"] .song-example__cta {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-key-heading {
    margin-bottom: 20px;
  }

  body[data-page="home"] .song-example {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--r-lg);
  }

  body[data-page="home"] .song-example__cover {
    min-height: 114px;
    padding: 13px;
    border-radius: 16px;
  }

  body[data-page="home"] .song-example__cover-title {
    font-size: 1rem;
  }

  body[data-page="home"] .song-example__cover-kicker {
    font-size: 0.48rem;
  }

  body[data-page="home"] .song-example__cover-note--one {
    top: 38px;
    right: 14px;
  }

  body[data-page="home"] .song-example__title-row p {
    font-size: 0.78rem;
  }

  body[data-page="home"] .song-example__wave {
    margin: 7px 0 5px;
  }

  body[data-page="home"] .song-example__cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }
}

/* Два компактных примера: демонстрация работает как витрина, а не как широкий CTA-баннер. */
body[data-page="home"] .song-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}

body[data-page="home"] .song-examples .song-example {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 17px;
  min-height: 0;
  margin: 0;
  padding: 15px;
  border-radius: var(--r-lg);
}

body[data-page="home"] .song-examples .song-example::before {
  top: -115px;
  right: -8%;
  width: 240px;
  height: 210px;
  opacity: 0.72;
}

body[data-page="home"] .song-examples .song-example__cover {
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
}

body[data-page="home"] .song-examples .song-example__cover-title {
  font-size: 1.04rem;
}

body[data-page="home"] .song-examples .song-example__cover-kicker {
  font-size: 0.5rem;
}

body[data-page="home"] .song-examples .song-example__cover-note--one {
  top: 36px;
  right: 16px;
  font-size: 1.06rem;
}

body[data-page="home"] .song-examples .song-example__cover-note--two {
  right: 30px;
  bottom: 24px;
  font-size: 0.86rem;
}

body[data-page="home"] .song-examples .song-example__content {
  align-self: center;
}

body[data-page="home"] .song-examples .song-example__eyebrow {
  margin-bottom: 5px;
  font-size: 0.64rem;
}

body[data-page="home"] .song-examples .song-example h2 {
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
}

body[data-page="home"] .song-examples .song-example__title-row {
  gap: 10px;
}

body[data-page="home"] .song-examples .song-example__title-row p {
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.36;
}

body[data-page="home"] .song-examples .song-example__duration {
  padding: 4px 7px;
  font-size: 0.64rem;
}

body[data-page="home"] .song-examples .song-example__wave {
  height: 26px;
  margin: 7px 0 4px;
}

body[data-page="home"] .song-examples .song-example__wave span {
  width: 2px;
  flex-basis: 2px;
}

body[data-page="home"] .song-examples .song-example__meta {
  font-size: 0.65rem;
}

body[data-page="home"] .song-example--love .song-example__cover {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 246, 192, 0.95), transparent 23%),
    linear-gradient(145deg, #a985dd 0%, #e77cae 55%, #ff9a83 118%);
}

@media (max-width: 760px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  body[data-page="home"] .song-examples .song-example {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  body[data-page="home"] .song-examples .song-example__cover {
    min-height: 108px;
    padding: 12px;
  }
}

/* -------------------------------------------------------------------------
   10. Главная — шаги создания песни
   ------------------------------------------------------------------------- */

body[data-page="home"] .how-to-start {
  position: relative;
  isolation: isolate;
  margin: 8px 0 38px;
  padding: 0;
}

body[data-page="home"] .how-to-start__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1180px);
  gap: 32px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .how-to-start__steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 28px;
  right: calc((100% - 64px) / 6);
  left: calc((100% - 64px) / 6);
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 152, 146, 0.23), rgba(235, 109, 170, 0.76), rgba(185, 132, 222, 0.3));
}

body[data-page="home"] .how-to-start__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 142px;
  padding: 0;
  text-align: center;
}

body[data-page="home"] .how-to-start__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 15px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: linear-gradient(145deg, #ff9773, #f76fa1);
  box-shadow: 0 10px 19px rgba(229, 108, 144, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #fff;
}

body[data-page="home"] .how-to-start__icon--story span {
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(1px);
}

body[data-page="home"] .how-to-start__icon--details {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(145deg, #ffab78, #f6869d);
}

body[data-page="home"] .how-to-start__icon--details::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 22px;
  border-radius: 9px 9px 9px 2px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 9px rgba(161, 73, 93, 0.13);
}

body[data-page="home"] .how-to-start__icon--details span {
  position: relative;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ef769e;
}

body[data-page="home"] .how-to-start__icon--song {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(145deg, #bf8cdb, #ea78ae);
}

body[data-page="home"] .how-to-start__icon--song span {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .how-to-start__icon--song span:nth-child(2) { height: 26px; }
body[data-page="home"] .how-to-start__icon--song span:nth-child(3) { height: 11px; }
body[data-page="home"] .how-to-start__icon--song span:nth-child(4) { height: 21px; }

body[data-page="home"] .how-to-start h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

body[data-page="home"] .how-to-start__step p {
  max-width: 27ch;
  margin: 7px 0 0;
  color: var(--ink-muted);
  font-size: 0.77rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  body[data-page="home"] .how-to-start {
    margin-bottom: 20px;
    padding: 0;
  }

  body[data-page="home"] .how-to-start__steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body[data-page="home"] .how-to-start__steps::before {
    top: 51px;
    bottom: 40px;
    left: 28px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(249, 152, 146, 0.23), rgba(235, 109, 170, 0.76), rgba(185, 132, 222, 0.3));
  }

  body[data-page="home"] .how-to-start__step {
    display: grid;
    min-height: 0;
    grid-template-columns: 57px 1fr;
    column-gap: 14px;
    padding: 0;
    text-align: left;
  }

  body[data-page="home"] .how-to-start__icon {
    grid-row: span 2;
    margin: 0;
  }

  body[data-page="home"] .how-to-start h3 {
    align-self: end;
  }

  body[data-page="home"] .how-to-start__step p {
    margin-top: 5px;
  }
}

/* -------------------------------------------------------------------------
   11. Главная — карточки направлений
   ------------------------------------------------------------------------- */

body[data-page="home"] .feature-grid,
.feature-grid {
  gap: 18px;
}

.feature-card,
body[data-page="home"] .feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 243, 0.72));
  box-shadow: var(--sh-sm), var(--sh-inset);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out),
    border-color var(--dur) var(--ease);
  animation: sh-rise 640ms var(--ease-out) backwards;
}

.feature-grid > .feature-card:nth-child(1) {
  animation-delay: 120ms;
}

.feature-grid > .feature-card:nth-child(2) {
  animation-delay: 210ms;
}

.feature-grid > .feature-card:nth-child(3) {
  animation-delay: 300ms;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: var(--grad-accent-soft);
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}

.feature-card::after,
body[data-page="home"] .feature-card::after {
  background: radial-gradient(circle at 82% 22%, rgba(255, 208, 226, 0.5), transparent 62%);
}

.feature-card h2,
body[data-page="home"] .feature-card h2 {
  color: var(--ink-strong);
  letter-spacing: -0.04em;
}

.feature-card--link:hover,
body[data-page="home"] .feature-card--link:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 190, 212, 0.8);
  box-shadow: var(--sh-lg);
}

.feature-card--link:hover::before {
  opacity: 1;
}

.feature-card--link .feature-visual {
  transition: transform var(--dur-slow) var(--ease-out);
}

.feature-card--link:hover .feature-visual {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
}

.price-pill,
body[data-page="home"] .price-pill {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, rgba(255, 205, 176, 0.86), rgba(252, 184, 214, 0.8));
  color: #8d3f5f;
  font-weight: 800;
  box-shadow: var(--sh-xs);
}

.feature-visual--emoji,
body[data-page="home"] .feature-visual--emoji {
  filter: drop-shadow(0 10px 20px rgba(206, 124, 157, 0.24));
}

/* --- эксперимент: фотофоны карточек направлений (нейро-стиль: звуковая волна / голограмма / рука и робот) --- */
body[data-page="home"] .feature-card--music,
body[data-page="home"] .feature-card--video,
body[data-page="home"] .feature-card--image {
  min-height: 192px;
  isolation: isolate;
}

body[data-page="home"] .feature-card--music > div,
body[data-page="home"] .feature-card--video > div,
body[data-page="home"] .feature-card--image > div {
  position: relative;
  z-index: 3;
}

body[data-page="home"] .feature-card--music::before,
body[data-page="home"] .feature-card--video::before,
body[data-page="home"] .feature-card--image::before,
body[data-page="home"] .feature-card--music::after,
body[data-page="home"] .feature-card--video::after,
body[data-page="home"] .feature-card--image::after {
  z-index: 2;
  pointer-events: none;
}

/* подсветка при наведении — только у текстовой части, фото не выцветает */
body[data-page="home"] .feature-card--music::before,
body[data-page="home"] .feature-card--video::before,
body[data-page="home"] .feature-card--image::before {
  background: linear-gradient(90deg, rgba(255, 205, 176, 0.42), rgba(252, 184, 214, 0.2) 40%, transparent 60%);
}

body[data-page="home"] .feature-card--music::after,
body[data-page="home"] .feature-card--video::after,
body[data-page="home"] .feature-card--image::after {
  opacity: 0.45;
}

/* фото занимает всю карточку и мягко растворяется к тексту слева */
body[data-page="home"] .feature-card--music .feature-visual--emoji,
body[data-page="home"] .feature-card--video .feature-visual--emoji,
body[data-page="home"] .feature-card--image .feature-visual--emoji {
  position: absolute;
  inset: 0 0 0 20%;
  z-index: 1;
  width: auto;
  height: auto;
  flex: none;
  border-radius: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  filter: saturate(104%);
  opacity: 0.96;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: 75% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 22%, rgba(0, 0, 0, 0.92) 46%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 22%, rgba(0, 0, 0, 0.92) 46%, #000 60%);
  transition: transform 0.9s var(--ease-out), opacity var(--dur) var(--ease);
}

body[data-page="home"] .feature-card--music .feature-visual--emoji,
body[data-page="home"] .feature-card--video .feature-visual--emoji {
  inset: 0 0 0 28%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.8) 46%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.8) 46%, #000 62%);
}

body[data-page="home"] .feature-card--music .feature-visual--emoji {
  background-image:
    linear-gradient(90deg, rgba(255, 238, 232, 0.4), rgba(255, 238, 232, 0) 55%),
    url("../assets/cards/music-ai.jpg");
  background-position: 50% 50%;
}

body[data-page="home"] .feature-card--video .feature-visual--emoji {
  background-image:
    linear-gradient(90deg, rgba(255, 238, 232, 0.4), rgba(255, 238, 232, 0) 55%),
    url("../assets/cards/video-ai.jpg");
  background-position: 50% 50%;
}

body[data-page="home"] .feature-card--image .feature-visual--emoji {
  background-image:
    linear-gradient(90deg, rgba(255, 238, 232, 0.5), rgba(255, 238, 232, 0) 60%),
    url("../assets/cards/image-ai.jpg");
  background-position: 40% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.9) 52%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.9) 52%, #000 62%);
}

body[data-page="home"] .feature-card--link:hover .feature-visual--emoji {
  transform: scale(1.06);
  opacity: 1;
}

/* текст поверх фото — чуть компактнее и с белым свечением, чтобы читался */
body[data-page="home"] .feature-card--music h2,
body[data-page="home"] .feature-card--video h2,
body[data-page="home"] .feature-card--image h2 {
  font-size: clamp(1.9rem, 2.45vw, 2.7rem);
  text-shadow: 0 2px 14px rgba(255, 246, 243, 0.95), 0 0 2px rgba(255, 255, 255, 0.9);
}

body[data-page="home"] .feature-card--music .price-pill,
body[data-page="home"] .feature-card--video .price-pill,
body[data-page="home"] .feature-card--image .price-pill {
  box-shadow: 0 6px 16px rgba(206, 124, 157, 0.18);
}

@media (max-width: 1200px) {
  body[data-page="home"] .feature-card--music .feature-visual--emoji,
  body[data-page="home"] .feature-card--video .feature-visual--emoji,
  body[data-page="home"] .feature-card--image .feature-visual--emoji {
    inset: 0 0 0 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 42%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 42%);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .feature-card--music,
  body[data-page="home"] .feature-card--video,
  body[data-page="home"] .feature-card--image {
    min-height: 150px;
  }

  body[data-page="home"] .feature-card--music .feature-visual--emoji,
  body[data-page="home"] .feature-card--video .feature-visual--emoji,
  body[data-page="home"] .feature-card--image .feature-visual--emoji {
    inset: 0 0 0 26%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 22%, #000 50%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 22%, #000 50%);
  }
}

/* Преимущества сервиса: текст остаётся главным, без фоновых картинок. */
body[data-page="home"] .feature-card--music .feature-card__copy,
body[data-page="home"] .feature-card--video .feature-card__copy,
body[data-page="home"] .feature-card--image .feature-card__copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

body[data-page="home"] .feature-card--music h2,
body[data-page="home"] .feature-card--video h2,
body[data-page="home"] .feature-card--image h2 {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.12;
  text-shadow: none;
}

body[data-page="home"] .feature-card__copy p {
  margin: 10px 0 0;
  max-width: 29ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
}

@media (max-width: 760px) {
  body[data-page="home"] .feature-card--music h2,
  body[data-page="home"] .feature-card--video h2,
  body[data-page="home"] .feature-card--image h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  }
}

/* -------------------------------------------------------------------------
   9. Главная — видео клипы
   ------------------------------------------------------------------------- */

body[data-page="home"] .home-video-clips {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 250, 0.6));
  backdrop-filter: blur(20px) saturate(124%);
  -webkit-backdrop-filter: blur(20px) saturate(124%);
  box-shadow: var(--sh-sm), var(--sh-inset);
}

body[data-page="home"] .home-video-clips__copy h2 {
  color: var(--ink-strong);
  letter-spacing: -0.04em;
}

body[data-page="home"] .home-video-clips__copy p {
  color: var(--ink-soft);
}

body[data-page="home"] .home-video-clips__nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-500);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

body[data-page="home"] .home-video-clips__nav:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: var(--sh-sm);
}

body[data-page="home"] .home-video-clips__nav:disabled {
  opacity: 0.4;
}

body[data-page="home"] .video-clip-card {
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

body[data-page="home"] .video-clip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

body[data-page="home"] .video-clip-card__media {
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 224, 210, 0.8), rgba(255, 214, 230, 0.7));
}

body[data-page="home"] .video-clip-card__duration {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(72, 40, 56, 0.56);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-page="home"] .video-clip-card__play {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-600);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body[data-page="home"] .video-clip-card__play:hover {
  transform: scale(1.08);
  background: #fff;
  box-shadow: var(--sh-glow);
}

body[data-page="home"] .video-clip-card__play svg {
  fill: currentColor;
  color: var(--rose-600);
}

body[data-page="home"] .video-clip-card__body strong {
  color: var(--ink-strong);
}

body[data-page="home"] .video-clip-card__author {
  color: var(--ink-dim);
}

body[data-page="home"] .video-clip-card__author::before {
  background: var(--grad-accent);
}

/* -------------------------------------------------------------------------
   10. Главная — подборки
   ------------------------------------------------------------------------- */

body[data-page="home"] .collection-column h3,
.collection-column h3 {
  color: var(--ink-strong);
  letter-spacing: -0.035em;
}

.track-card,
body[data-page="home"] .track-card {
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.track-card:hover,
body[data-page="home"] .track-card:hover {
  transform: translateX(4px);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.cover-art,
body[data-page="home"] .cover-art {
  border-radius: var(--r-sm);
  box-shadow: var(--sh-xs);
}

.track-info strong,
body[data-page="home"] .track-info strong {
  color: var(--ink-strong);
}

.track-info p,
body[data-page="home"] .track-info p,
.track-meta {
  color: var(--ink-dim);
}

.badge,
body[data-page="home"] .badge {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 236, 243, 0.9);
  color: var(--rose-600);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   11. Прочие мелочи
   ------------------------------------------------------------------------- */

.chip-badge {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-weight: 600;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

a.chip-badge:hover {
  border-color: var(--rose-300);
  background: #fff;
  color: var(--rose-600);
}

.chip-badge--accent {
  border-color: transparent;
  background: linear-gradient(120deg, rgba(255, 205, 176, 0.86), rgba(252, 184, 214, 0.8));
  color: #8d3f5f;
  font-weight: 700;
}

.search-field,
.library-search {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.search-field:focus-within,
.library-search:focus-within {
  border-color: var(--rose-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 196, 218, 0.3);
}

.search-field input,
.library-search input {
  color: var(--ink);
}

.library-search__icon {
  color: var(--rose-400);
}

.upload-tile {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.upload-tile:hover {
  transform: translateY(-2px);
  border-color: var(--rose-400);
  background: rgba(255, 255, 255, 0.9);
}

.track-row {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.76);
}

/* Главная — тёмный промо-экран персональной песни. */
body[data-page="home"] .music-promo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(34px, 5.5vw, 84px);
  align-items: center;
  min-height: 548px;
  margin: 0 0 34px;
  padding: clamp(34px, 4.5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 27%, rgba(164, 96, 235, 0.24), transparent 25%),
    radial-gradient(circle at 18% 8%, rgba(167, 80, 200, 0.17), transparent 35%),
    linear-gradient(124deg, #180a29 0%, #0d1020 57%, #080a12 100%);
  box-shadow: 0 26px 60px rgba(35, 18, 47, 0.23);
}

body[data-page="home"] .music-promo::before,
body[data-page="home"] .music-promo::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body[data-page="home"] .music-promo::before {
  top: -170px;
  left: -115px;
  width: 390px;
  height: 390px;
  background: rgba(161, 80, 206, 0.13);
  filter: blur(28px);
}

body[data-page="home"] .music-promo::after {
  right: 5%;
  bottom: -180px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(205, 162, 255, 0.14);
  box-shadow: 0 0 0 58px rgba(183, 120, 248, 0.04), 0 0 0 116px rgba(183, 120, 248, 0.025);
}

body[data-page="home"] .music-promo__copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

body[data-page="home"] .music-promo__eyebrow,
body[data-page="home"] .promo-song-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e5bdff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-page="home"] .music-promo__eyebrow::before,
body[data-page="home"] .promo-song-card__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff78bb, #ad7aff);
  box-shadow: 0 0 0 5px rgba(226, 159, 255, 0.12);
}

body[data-page="home"] .music-promo h1 {
  max-width: 660px;
  margin: 20px 0 22px;
  color: #fff;
  font-size: clamp(2.55rem, 4.45vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

body[data-page="home"] .music-promo h1 span {
  display: block;
  color: #e2beff;
}

body[data-page="home"] .music-promo__lead {
  max-width: 540px;
  margin: 0;
  color: rgba(244, 239, 255, 0.76);
  font-size: clamp(0.92rem, 1.18vw, 1.05rem);
  font-weight: 500;
  line-height: 1.58;
}

body[data-page="home"] .music-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body[data-page="home"] .music-promo__primary,
body[data-page="home"] .music-promo__secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 15px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

body[data-page="home"] .music-promo__primary {
  color: #fff;
  background: linear-gradient(118deg, #e258bc, #7864ed);
  box-shadow: 0 10px 24px rgba(167, 73, 205, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body[data-page="home"] .music-promo__secondary {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="home"] :is(.music-promo__primary, .music-promo__secondary):hover {
  transform: translateY(-2px);
}

body[data-page="home"] .music-promo__primary:hover {
  box-shadow: 0 14px 29px rgba(167, 73, 205, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body[data-page="home"] .music-promo__secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

body[data-page="home"] .music-promo__note {
  margin: 20px 0 0;
  color: rgba(230, 222, 246, 0.55);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
}

body[data-page="home"] .music-promo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .music-promo__tags li {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

body[data-page="home"] .music-promo__preview {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

body[data-page="home"] .promo-song-card {
  position: relative;
  width: min(100%, 460px);
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgba(232, 203, 255, 0.14);
  border-radius: 27px;
  background:
    radial-gradient(circle at 9% 8%, rgba(192, 120, 235, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(38, 26, 57, 0.96), rgba(12, 18, 33, 0.94));
  box-shadow: 0 21px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .promo-song-card::after {
  content: "";
  position: absolute;
  top: -35px;
  right: -37px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(255, 220, 172, 0.3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 228, 189, 0.29), rgba(182, 110, 255, 0.04));
  transform: rotate(44deg);
}

body[data-page="home"] .promo-song-card__eyebrow {
  color: #e6be84;
}

body[data-page="home"] .promo-song-card__eyebrow::before {
  border-radius: 2px;
  background: #e7ba78;
  box-shadow: 0 0 0 4px rgba(231, 186, 120, 0.1);
}

body[data-page="home"] .promo-song-card h2 {
  max-width: 280px;
  margin: 18px 0 8px;
  color: #fff;
  font-size: clamp(1.33rem, 1.65vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

body[data-page="home"] .promo-song-card__meta {
  margin: 0 0 20px;
  color: rgba(231, 226, 242, 0.49);
  font-size: 0.68rem;
  font-weight: 700;
}

body[data-page="home"] .promo-song-card__player {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

body[data-page="home"] .promo-song-card__cover {
  position: relative;
  min-height: 162px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 180, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 195, 117, 0.55), transparent 32%),
    linear-gradient(145deg, #9c5e66, #3d1b45 70%);
}

body[data-page="home"] .promo-song-card__cover::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(21, 10, 27, 0.88));
}

body[data-page="home"] .promo-song-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% 52%;
  transform: scale(1.07);
}

body[data-page="home"] .promo-song-card__cover figcaption {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 9px;
  left: 10px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.12;
}

body[data-page="home"] .promo-song-card__track {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(5, 10, 22, 0.45);
}

body[data-page="home"] .promo-song-card__track-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

body[data-page="home"] .promo-song-card__play {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  padding-left: 2px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, #703f9b, #2a1748);
  box-shadow: 0 7px 15px rgba(108, 63, 158, 0.32);
  font-size: 0.62rem;
}

body[data-page="home"] .promo-song-card__track-head p {
  min-width: 0;
  margin: 0;
}

body[data-page="home"] .promo-song-card__track-head strong,
body[data-page="home"] .promo-song-card__track-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .promo-song-card__track-head strong {
  color: #fff;
  font-size: 0.71rem;
  font-weight: 800;
}

body[data-page="home"] .promo-song-card__track-head span {
  margin-top: 3px;
  color: rgba(230, 223, 244, 0.47);
  font-size: 0.56rem;
  font-weight: 600;
}

body[data-page="home"] .promo-song-card__wave {
  height: 32px;
  margin: 12px 0;
  opacity: 0.84;
  background:
    linear-gradient(90deg, transparent 0 2%, #efbc6f 2% 3%, transparent 3% 6%, #8763cf 6% 7%, transparent 7% 10%, #d68ae5 10% 12%, transparent 12% 15%, #efbc6f 15% 16%, transparent 16% 19%, #8763cf 19% 21%, transparent 21% 24%, #d68ae5 24% 25%, transparent 25% 28%, #efbc6f 28% 30%, transparent 30% 34%, #8763cf 34% 35%, transparent 35% 39%, #d68ae5 39% 41%, transparent 41% 45%, #efbc6f 45% 46%, transparent 46% 50%, #8763cf 50% 52%, transparent 52% 56%, #d68ae5 56% 57%, transparent 57% 61%, #efbc6f 61% 63%, transparent 63% 67%, #8763cf 67% 68%, transparent 68% 72%, #d68ae5 72% 74%, transparent 74% 78%, #efbc6f 78% 79%, transparent 79% 83%, #8763cf 83% 85%, transparent 85% 89%, #d68ae5 89% 90%, transparent 90%);
  border-radius: 8px;
}

body[data-page="home"] .promo-song-card blockquote {
  margin: 0;
  color: rgba(244, 239, 255, 0.68);
  font-size: 0.66rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
}

body[data-page="home"] .promo-song-card__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .promo-song-card__features li {
  padding: 10px 6px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.59rem;
  font-weight: 800;
  text-align: center;
}

body[data-page="home"] .promo-song-card__cta {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

body[data-page="home"] .promo-song-card__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  body[data-page="home"] .music-promo {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 30px;
    padding: 38px;
  }

  body[data-page="home"] .music-promo h1 {
    font-size: clamp(2.35rem, 4.3vw, 3.8rem);
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .music-promo {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  body[data-page="home"] .music-promo__copy {
    max-width: 680px;
  }

  body[data-page="home"] .music-promo__preview {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body[data-page="home"] .music-promo {
    gap: 27px;
    margin-bottom: 24px;
    padding: 28px 20px;
    border-radius: 24px;
  }

  body[data-page="home"] .music-promo h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  body[data-page="home"] .music-promo__actions {
    gap: 9px;
    margin-top: 24px;
  }

  body[data-page="home"] :is(.music-promo__primary, .music-promo__secondary) {
    min-height: 45px;
    padding: 0 14px;
    font-size: 0.73rem;
  }

  body[data-page="home"] .music-promo__tags {
    gap: 7px;
    margin-top: 18px;
  }

  body[data-page="home"] .promo-song-card {
    padding: 20px;
    border-radius: 21px;
  }

  body[data-page="home"] .promo-song-card__player {
    gap: 10px;
  }
}

/* -------------------------------------------------------------------------
   13. Главная — ясность сценария и точки доверия
   ------------------------------------------------------------------------- */

/* Короткие факты под CTA отвечают на основные вопросы до перехода к форме. */
body[data-page="home"] .hero-banner--split .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .hero-banner--split .hero-proof li {
  padding: 5px 8px;
  border: 1px solid rgba(244, 143, 177, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="home"] .delivery-card__included {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin: 6px 0 0;
  padding: 3px 7px;
  border: 1px solid rgba(239, 126, 165, 0.2);
  border-radius: 999px;
  background: rgba(255, 237, 244, 0.9);
  color: var(--rose-600);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Тёмная секция намеренно разбивает длинный ряд светлых карточек и усиливает ценность продукта. */
body[data-page="home"] .song-assurance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr);
  gap: 30px;
  margin: 0 0 30px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 236, 0.16);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 8% 110%, rgba(246, 116, 163, 0.3), transparent 36%),
    radial-gradient(circle at 91% -12%, rgba(186, 140, 224, 0.26), transparent 32%),
    linear-gradient(125deg, #352534 0%, #4a2d43 54%, #45314d 100%);
  box-shadow: 0 18px 38px rgba(73, 37, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-page="home"] .song-assurance::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.035), 0 0 0 67px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

body[data-page="home"] .song-assurance__copy,
body[data-page="home"] .song-assurance__list {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .song-assurance__eyebrow {
  margin: 0 0 8px;
  color: #ffb8d1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .song-assurance h2 {
  margin: 0;
  color: #fff8fb;
  font-size: clamp(1.28rem, 1.9vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

body[data-page="home"] .song-assurance__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .song-assurance__list li {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .song-assurance__list strong {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

body[data-page="home"] .song-assurance__list span {
  margin-top: 6px;
  color: rgba(255, 243, 249, 0.68);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.38;
}

body[data-page="home"] .song-template-carousel__hint {
  margin: 7px 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Отдельный заголовок не даёт общим инструментам конкурировать с воронкой песни. */
body[data-page="home"] .home-tools {
  margin: 36px 0 30px;
}

body[data-page="home"] .home-tools__head {
  max-width: 610px;
  margin: 0 0 18px;
}

body[data-page="home"] .home-tools__head > p {
  margin: 0 0 7px;
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .home-tools__head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 2.45vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

@media (max-width: 1100px) {
  body[data-page="home"] .hero-banner--split .hero-proof {
    margin-top: 10px;
  }

  body[data-page="home"] .song-assurance {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-banner--split .hero-proof li {
    font-size: 0.6rem;
  }

  body[data-page="home"] .delivery-card__included {
    display: table;
  }

  body[data-page="home"] .song-assurance {
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  body[data-page="home"] .song-assurance__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="home"] .song-assurance__list li {
    min-height: 0;
    padding: 12px 13px;
  }

  body[data-page="home"] .song-assurance__list span {
    margin-top: 3px;
  }

  body[data-page="home"] .home-tools {
    margin: 28px 0 22px;
  }
}

/* -------------------------------------------------------------------------
   14. Главная — спокойная редакционная система
   ------------------------------------------------------------------------- */

/* Фон и панели больше не соревнуются за внимание с содержимым. */
.sidebar,
body[data-page="home"] .sidebar {
  border-color: rgba(89, 54, 66, 0.1);
  background: #fffdfb;
  box-shadow: 0 12px 30px rgba(68, 39, 50, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

.app-shell::before,
body[data-page="home"] .app-shell::before {
  content: none;
  animation: none;
}

.logo,
body[data-page="home"] .logo,
.gradient-text,
body[data-page="home"] .gradient-text {
  animation: none;
}

body[data-page="home"] .page-content {
  gap: 34px;
}

/* Hero: один локальный фон, одна маска иллюстрации, никаких белых вуалей сверху. */
body[data-page="home"] .hero-duo {
  gap: 16px;
  margin-bottom: 0;
}

body[data-page="home"] .hero-banner,
body[data-page="home"] .hero-banner--split {
  min-height: 360px;
  height: 360px;
  padding: 32px;
  overflow: hidden;
  border-color: rgba(89, 54, 66, 0.1);
  border-radius: 24px;
  background: #fffdfb;
  box-shadow: 0 14px 32px rgba(68, 39, 50, 0.07);
  animation: none;
}

body[data-page="home"] .hero-banner[data-hero-group="1"] {
  background: #fdfaff;
}

body[data-page="home"] .hero-banner::before,
body[data-page="home"] .hero-banner::after {
  content: none;
}

body[data-page="home"] .hero-banner--split .hero-media,
body[data-page="home"] .hero-media--gift-song,
body[data-page="home"] .hero-media--gift-newlyweds,
body[data-page="home"] .hero-media--gift-dad-defender,
body[data-page="home"] .hero-media--gift-friend-prank,
body[data-page="home"] .hero-media--gift-clip,
body[data-page="home"] .hero-media--gift-streaming {
  left: 43%;
  opacity: 1;
  background-size: auto 102%;
  background-position: right bottom;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.14) 12%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.14) 12%, #000 42%);
}

body[data-page="home"] .hero-media--gift-streaming {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 15%, rgba(0, 0, 0, 0.42) 35%, #000 57%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 15%, rgba(0, 0, 0, 0.42) 35%, #000 57%);
}

body[data-page="home"] .hero-banner--split :is(h1, h2),
body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
  max-width: 58%;
  margin-bottom: 13px;
  font-size: clamp(1.8rem, 2.15vw, 2.38rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

body[data-page="home"] .hero-banner .gradient-text {
  background: none;
  color: #dc5d80;
}

body[data-page="home"] .hero-banner--split .hero-text,
body[data-page="home"] .hero-banner--split[data-hero-variant] .hero-text {
  max-width: 54%;
  margin-bottom: 19px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.48;
}

body[data-page="home"] .hero-banner--split .eyebrow {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #b84d6d;
  font-size: 0.7rem;
  letter-spacing: 0.075em;
}

body[data-page="home"] .hero-banner--split .eyebrow::before {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

body[data-page="home"] .hero-banner--split .primary-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  background: #e36082;
  box-shadow: 0 8px 18px rgba(210, 75, 111, 0.2);
}

body[data-page="home"] .hero-banner--split .primary-btn:hover {
  background: #d75478;
  box-shadow: 0 10px 22px rgba(210, 75, 111, 0.25);
}

body[data-page="home"] .hero-banner--split .hero-proof {
  gap: 0;
  margin-top: 13px;
}

body[data-page="home"] .hero-banner--split .hero-proof li {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

body[data-page="home"] .hero-banner--split .hero-proof li + li::before {
  content: "·";
  margin: 0 7px;
  color: #d97c96;
}

body[data-page="home"] .hero-banner--split .hero-slides {
  right: 18px;
  bottom: 16px;
}

body[data-page="home"] .hero-dot {
  width: 7px;
  height: 7px;
  background: rgba(140, 91, 109, 0.25);
}

body[data-page="home"] .hero-dot--active {
  width: 22px;
  border-radius: 999px;
  background: #df6687;
  box-shadow: none;
}

body[data-page="home"] .hero-banner.is-changing .hero-media,
body[data-page="home"] .hero-banner.is-changing .hero-overlay {
  animation: none;
}

/* Примеры песен — не имитируют плеер, пока не добавлены настоящие аудиофрагменты. */
body[data-page="home"] .song-examples {
  gap: 14px;
  margin: 0;
}

body[data-page="home"] .song-examples .song-example {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  border-color: rgba(89, 54, 66, 0.1);
  border-radius: 20px;
  background: #fffdfb;
  box-shadow: 0 10px 24px rgba(68, 39, 50, 0.055);
}

body[data-page="home"] .song-examples .song-example::before,
body[data-page="home"] .song-example__cover::after,
body[data-page="home"] .song-example__cover-glow {
  content: none;
}

body[data-page="home"] .song-examples .song-example__cover {
  min-height: 110px;
  padding: 14px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(145deg, #ef8f85, #db6694);
  box-shadow: none;
}

body[data-page="home"] .song-example--love .song-example__cover {
  background: linear-gradient(145deg, #9b83c8, #dd6b9c);
}

body[data-page="home"] .song-example__cover-note,
body[data-page="home"] .song-example__cover-mark,
body[data-page="home"] .song-example__wave,
body[data-page="home"] .song-example__duration {
  display: none;
}

body[data-page="home"] .song-examples .song-example__cover-kicker {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
}

body[data-page="home"] .song-examples .song-example__cover-title {
  font-size: 1.08rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

body[data-page="home"] .song-examples .song-example__eyebrow {
  margin-bottom: 6px;
  color: #b84d6d;
  font-size: 0.64rem;
}

body[data-page="home"] .song-examples .song-example__eyebrow::before {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

body[data-page="home"] .song-examples .song-example h2 {
  font-size: clamp(1.12rem, 1.35vw, 1.35rem);
  letter-spacing: -0.04em;
}

body[data-page="home"] .song-examples .song-example__title-row p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.42;
}

body[data-page="home"] .song-examples .song-example__meta {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.66rem;
}

/* Раздел шагов даёт паузу между карточками и не нуждается в собственной подложке. */
body[data-page="home"] .how-to-start {
  margin: 0;
  padding: 4px 0 0;
}

body[data-page="home"] .how-to-start__head {
  max-width: 560px;
  margin: 0 0 25px;
}

body[data-page="home"] .how-to-start__head p {
  margin: 0 0 7px;
  color: #b84d6d;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .how-to-start__steps {
  gap: 22px;
}

body[data-page="home"] .how-to-start__steps::before {
  background: rgba(125, 83, 96, 0.16);
}

body[data-page="home"] .how-to-start__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  border: 0;
  border-radius: 14px;
  background: #f6dfd9;
  box-shadow: none;
  color: #bf536f;
}

body[data-page="home"] .how-to-start__icon--details,
body[data-page="home"] .how-to-start__icon--song {
  background: #f6dfd9;
}

body[data-page="home"] .how-to-start__icon--details::before {
  background: #fffaf7;
  box-shadow: none;
}

body[data-page="home"] .how-to-start__icon--details span {
  background: #c35b75;
}

body[data-page="home"] .how-to-start__icon--song span {
  background: #c35b75;
}

body[data-page="home"] .how-to-start h3 {
  font-size: 1rem;
}

body[data-page="home"] .how-to-start__step p {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* Крупные блоки — матовые, а внутренние карточки поддерживают контент без эффекта «пластика». */
body[data-page="home"] :is(.delivery-kit, .home-video-clips) {
  border-color: rgba(89, 54, 66, 0.1);
  background: #fffaf7;
  box-shadow: 0 12px 28px rgba(68, 39, 50, 0.055);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .delivery-kit {
  gap: 28px;
  padding: 30px;
}

body[data-page="home"] .delivery-kit::before {
  content: none;
}

body[data-page="home"] .delivery-kit__eyebrow,
body[data-page="home"] .song-template-carousel__eyebrow {
  color: #b84d6d;
  font-size: 0.69rem;
}

body[data-page="home"] :is(.delivery-kit__eyebrow, .song-template-carousel__eyebrow)::before {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

body[data-page="home"] .delivery-kit h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.22rem);
  letter-spacing: -0.05em;
}

body[data-page="home"] .delivery-kit__head > p:last-child,
body[data-page="home"] .delivery-card p {
  color: var(--ink-soft);
}

body[data-page="home"] .delivery-kit__grid {
  gap: 0;
  border-top: 1px solid rgba(89, 54, 66, 0.1);
  border-bottom: 1px solid rgba(89, 54, 66, 0.1);
}

body[data-page="home"] .delivery-card {
  min-height: 168px;
  padding: 20px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .delivery-card + .delivery-card {
  border-left: 1px solid rgba(89, 54, 66, 0.1);
}

body[data-page="home"] .delivery-card:hover {
  transform: none;
  border-color: rgba(89, 54, 66, 0.1);
  box-shadow: none;
}

body[data-page="home"] .delivery-card__icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3dcd6;
  box-shadow: none;
  color: #bb526d;
}

body[data-page="home"] .delivery-card__icon svg {
  width: 21px;
  height: 21px;
}

body[data-page="home"] .delivery-card__included {
  margin-top: 7px;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #bc5d75;
  font-size: 0.58rem;
}

/* Акцент остаётся тёплым, а не переключает страницу в другую тёмную тему. */
body[data-page="home"] .song-assurance {
  gap: 32px;
  padding: 28px 30px;
  border-color: #efcec4;
  border-radius: 24px;
  background: #fff1e9;
  box-shadow: none;
}

body[data-page="home"] .song-assurance::after {
  content: none;
}

body[data-page="home"] .song-assurance__eyebrow {
  color: #ba536f;
}

body[data-page="home"] .song-assurance h2 {
  color: var(--ink-strong);
}

body[data-page="home"] .song-assurance__list {
  gap: 0;
  border-top: 1px solid rgba(137, 83, 97, 0.18);
  border-bottom: 1px solid rgba(137, 83, 97, 0.18);
}

body[data-page="home"] .song-assurance__list li {
  min-height: 104px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .song-assurance__list li + li {
  border-left: 1px solid rgba(137, 83, 97, 0.18);
}

body[data-page="home"] .song-assurance__list strong {
  color: var(--ink-strong);
}

body[data-page="home"] .song-assurance__list span {
  color: var(--ink-soft);
}

/* Шаблоны остаются яркими, но исчезает ещё один большой «стеклянный контейнер». */
body[data-page="home"] .song-template-carousel {
  margin: 0;
  padding: 2px 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .song-template-carousel::before {
  content: none;
}

body[data-page="home"] .song-template-carousel__head {
  margin-bottom: 15px;
}

body[data-page="home"] .song-template-carousel__hint {
  color: var(--ink-soft);
}

body[data-page="home"] .song-template-carousel__arrow {
  width: 36px;
  height: 36px;
  border-color: rgba(89, 54, 66, 0.12);
  background: #fffdfb;
  box-shadow: none;
}

body[data-page="home"] .song-template-card {
  min-height: 180px;
  border-color: rgba(89, 54, 66, 0.08);
  border-radius: 18px;
  box-shadow: none;
}

body[data-page="home"] .song-template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 105, 133, 0.35);
  box-shadow: 0 10px 20px rgba(68, 39, 50, 0.06);
}

/* Карточки направлений получают предсказуемое деление «текст / изображение» без маски и наложения. */
body[data-page="home"] .home-tools {
  margin: 0;
}

body[data-page="home"] .home-tools__head {
  margin-bottom: 16px;
}

body[data-page="home"] .feature-grid {
  gap: 14px;
  margin-bottom: 0;
}

body[data-page="home"] .feature-card,
body[data-page="home"] .feature-card--music,
body[data-page="home"] .feature-card--video,
body[data-page="home"] .feature-card--image {
  min-height: 188px;
  border-color: rgba(89, 54, 66, 0.1);
  border-radius: 20px;
  background: #fffdfb;
  box-shadow: 0 10px 24px rgba(68, 39, 50, 0.055);
  animation: none;
}

body[data-page="home"] .feature-card::before,
body[data-page="home"] .feature-card::after {
  content: none;
}

body[data-page="home"] .feature-card--link:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 105, 133, 0.35);
  box-shadow: 0 14px 28px rgba(68, 39, 50, 0.08);
}

body[data-page="home"] .feature-card--music .feature-card__copy,
body[data-page="home"] .feature-card--video .feature-card__copy,
body[data-page="home"] .feature-card--image .feature-card__copy {
  z-index: 2;
  width: 56%;
  padding-right: 6px;
}

body[data-page="home"] .feature-card--music h2,
body[data-page="home"] .feature-card--video h2,
body[data-page="home"] .feature-card--image h2 {
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  letter-spacing: -0.045em;
}

body[data-page="home"] .feature-card__copy p {
  color: var(--ink-soft);
  font-size: 0.83rem;
}

body[data-page="home"] .price-pill {
  border: 0;
  border-radius: 999px;
  background: #f8e5df;
  box-shadow: none;
  color: #a54d68;
  font-size: 0.68rem;
}

body[data-page="home"] .feature-card--music .feature-visual--emoji,
body[data-page="home"] .feature-card--video .feature-visual--emoji,
body[data-page="home"] .feature-card--image .feature-visual--emoji {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 40%;
  height: 100%;
  border-left: 1px solid rgba(89, 54, 66, 0.08);
  background-size: cover;
  background-position: center;
  filter: none;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}

body[data-page="home"] .feature-card--music .feature-visual--emoji {
  background-image: url("../assets/cards/music-ai.jpg");
}

body[data-page="home"] .feature-card--video .feature-visual--emoji {
  background-image: url("../assets/cards/video-ai.jpg");
}

body[data-page="home"] .feature-card--image .feature-visual--emoji {
  background-image: url("../assets/cards/image-ai.jpg");
}

body[data-page="home"] .feature-card--link:hover .feature-visual--emoji {
  transform: none;
  opacity: 1;
}

body[data-page="home"] .home-video-clips {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .video-clip-card,
body[data-page="home"] .track-card {
  border-color: rgba(89, 54, 66, 0.1);
  background: #fffdfb;
  box-shadow: 0 8px 20px rgba(68, 39, 50, 0.045);
}

body[data-page="home"] .video-clip-card:hover,
body[data-page="home"] .track-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(68, 39, 50, 0.07);
}

body[data-page="home"] .video-clip-card__media {
  background: #f5e6e2;
}

@media (min-width: 761px) and (max-width: 980px) {
  .mobile-topbar {
    position: sticky;
    z-index: 120;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(89, 54, 66, 0.1);
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 6px 16px rgba(68, 39, 50, 0.04);
  }

  .mobile-menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    gap: 5px;
    align-content: center;
    padding: 0 8px;
    border: 1px solid rgba(89, 54, 66, 0.12);
    border-radius: 12px;
    background: #fffdfb;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #b84d6d;
  }

  .mobile-topbar__logo {
    color: #d45e7f;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.05em;
  }

  .mobile-topbar__logo span {
    color: #8f78ba;
  }

  .mobile-topbar__account,
  .mobile-account-pill {
    display: flex;
    align-items: center;
  }

  .mobile-account-pill {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(89, 54, 66, 0.12);
    border-radius: 999px;
    background: #fffdfb;
    color: #b84d6d;
    font-weight: 700;
  }

  .sidebar,
  body[data-page="home"] .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    width: min(320px, calc(100vw - 12px));
    height: 100dvh;
    margin: 0;
    padding: 22px 18px;
    border: 0;
    border-right: 1px solid rgba(89, 54, 66, 0.1);
    border-radius: 0 22px 22px 0;
    background: #fffdfb;
    transform: translateX(-110%);
    transition: transform 180ms ease;
    overflow-y: auto;
  }

  .app-shell.is-mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    border: 0;
    background: rgba(48, 32, 39, 0.26);
  }

  .mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }
}

@media (max-width: 1100px) {
  body[data-page="home"] .hero-banner--split :is(h1, h2),
  body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2) {
    max-width: 62%;
  }

  body[data-page="home"] .hero-banner--split .hero-text,
  body[data-page="home"] .hero-banner--split[data-hero-variant] .hero-text {
    max-width: 58%;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .page-content {
    gap: 25px;
  }

  body[data-page="home"] .hero-banner,
  body[data-page="home"] .hero-banner--split {
    min-height: 312px;
    height: auto;
    padding: 24px 20px;
    border-radius: 20px;
  }

  body[data-page="home"] .hero-banner--split .hero-media,
  body[data-page="home"] .hero-media--gift-song,
  body[data-page="home"] .hero-media--gift-newlyweds,
  body[data-page="home"] .hero-media--gift-dad-defender,
  body[data-page="home"] .hero-media--gift-friend-prank,
  body[data-page="home"] .hero-media--gift-clip,
  body[data-page="home"] .hero-media--gift-streaming {
    left: 30%;
    opacity: 0.27;
    background-size: auto 84%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 26%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 26%, #000 60%);
  }

  body[data-page="home"] .hero-banner--split :is(h1, h2),
  body[data-page="home"] .hero-banner--split[data-hero-variant] :is(h1, h2),
  body[data-page="home"] .hero-banner--split .hero-text,
  body[data-page="home"] .hero-banner--split[data-hero-variant] .hero-text {
    max-width: 100%;
  }

  body[data-page="home"] .hero-banner--split .hero-proof {
    max-width: 88%;
  }

  body[data-page="home"] .song-examples .song-example {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 128px;
    padding: 14px;
  }

  body[data-page="home"] .song-examples .song-example__cover {
    min-height: 98px;
  }

  body[data-page="home"] .how-to-start__head {
    margin-bottom: 21px;
  }

  body[data-page="home"] .delivery-kit,
  body[data-page="home"] .song-assurance {
    padding: 22px 18px;
    border-radius: 20px;
  }

  body[data-page="home"] .delivery-kit__grid,
  body[data-page="home"] .song-assurance__list {
    border-bottom: 0;
  }

  body[data-page="home"] .delivery-card,
  body[data-page="home"] .song-assurance__list li {
    border-bottom: 1px solid rgba(89, 54, 66, 0.1);
  }

  body[data-page="home"] .delivery-card + .delivery-card,
  body[data-page="home"] .song-assurance__list li + li {
    border-left: 0;
  }

  body[data-page="home"] .song-assurance__list li {
    min-height: 0;
  }

  body[data-page="home"] .feature-card,
  body[data-page="home"] .feature-card--music,
  body[data-page="home"] .feature-card--video,
  body[data-page="home"] .feature-card--image {
    min-height: 166px;
  }

  body[data-page="home"] .feature-card--music .feature-card__copy,
  body[data-page="home"] .feature-card--video .feature-card__copy,
  body[data-page="home"] .feature-card--image .feature-card__copy {
    width: 61%;
  }

  body[data-page="home"] .feature-card--music .feature-visual--emoji,
  body[data-page="home"] .feature-card--video .feature-visual--emoji,
  body[data-page="home"] .feature-card--image .feature-visual--emoji {
    width: 36%;
  }
}

/* -------------------------------------------------------------------------
   15. Главная — единый вертикальный ритм
   ------------------------------------------------------------------------- */

/* Интервалы задаются только между самостоятельными секциями: без сложения старых margin. */
body[data-page="home"] .page-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body[data-page="home"] .page-content > * {
  width: 100%;
  margin: 0 !important;
}

/* Связанные блоки идут плотнее, смена сценария получает больше воздуха. */
body[data-page="home"] .hero-duo + .song-examples {
  margin-top: 20px !important;
}

body[data-page="home"] .song-examples + .how-to-start {
  margin-top: 42px !important;
}

body[data-page="home"] .how-to-start + .delivery-kit {
  margin-top: 48px !important;
}

body[data-page="home"] .delivery-kit + .song-assurance {
  margin-top: 24px !important;
}

body[data-page="home"] .song-assurance + .song-template-carousel {
  margin-top: 48px !important;
}

body[data-page="home"] .song-template-carousel + .home-tools,
body[data-page="home"] .home-tools + .home-video-clips,
body[data-page="home"] .home-video-clips + .collections {
  margin-top: 48px !important;
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-duo + .song-examples {
    margin-top: 16px !important;
  }

  body[data-page="home"] .song-examples + .how-to-start {
    margin-top: 32px !important;
  }

  body[data-page="home"] .how-to-start + .delivery-kit,
  body[data-page="home"] .song-assurance + .song-template-carousel,
  body[data-page="home"] .song-template-carousel + .home-tools,
  body[data-page="home"] .home-tools + .home-video-clips,
  body[data-page="home"] .home-video-clips + .collections {
    margin-top: 36px !important;
  }

  body[data-page="home"] .delivery-kit + .song-assurance {
    margin-top: 18px !important;
  }
}

/* -------------------------------------------------------------------------
   16. Главная — сценарии подарков и финальный призыв
   ------------------------------------------------------------------------- */

body[data-page="home"] .song-template-carousel + .gift-stories,
body[data-page="home"] .gift-stories + .home-tools,
body[data-page="home"] .collections + .home-final-cta {
  margin-top: 48px !important;
}

body[data-page="home"] .gift-stories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

body[data-page="home"] .gift-stories__head > div > p {
  margin: 0 0 7px;
  color: #b84d6d;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .gift-stories__head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

body[data-page="home"] .gift-stories__head > span {
  padding-bottom: 3px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="home"] .gift-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="home"] .gift-story {
  --story-bg: #f8e5df;
  --story-accent: #c85c78;
  position: relative;
  display: flex;
  min-height: 306px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(89, 54, 66, 0.1);
  border-radius: 20px;
  background: #fffdfb;
  box-shadow: 0 10px 24px rgba(68, 39, 50, 0.05);
}

body[data-page="home"] .gift-story--wedding {
  --story-bg: #efe9f8;
  --story-accent: #8068ac;
}

body[data-page="home"] .gift-story--love {
  --story-bg: #f7e8ec;
  --story-accent: #bc5878;
}

body[data-page="home"] .gift-story__art {
  position: relative;
  width: 100%;
  height: 105px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--story-bg);
}

body[data-page="home"] .gift-story__art > span {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--story-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .gift-story__art i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--story-accent);
}

body[data-page="home"] .gift-story__art i:first-of-type {
  right: 22%;
  bottom: -32px;
  width: 126px;
  height: 126px;
  opacity: 0.86;
}

body[data-page="home"] .gift-story__art i:last-of-type {
  right: 12%;
  bottom: 25px;
  width: 34px;
  height: 34px;
  border: 8px solid rgba(255, 255, 255, 0.86);
  background: transparent;
}

body[data-page="home"] .gift-story__type {
  margin: 0 0 6px;
  color: var(--story-accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .gift-story h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

body[data-page="home"] .gift-story__text {
  margin: 9px 0 16px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.45;
}

body[data-page="home"] .gift-story a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: auto;
  color: var(--story-accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-page="home"] .gift-story a span {
  font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease);
}

body[data-page="home"] .gift-story:hover {
  border-color: color-mix(in srgb, var(--story-accent) 35%, transparent);
  box-shadow: 0 14px 28px rgba(68, 39, 50, 0.07);
}

body[data-page="home"] .gift-story:hover a span {
  transform: translateX(3px);
}

body[data-page="home"] .home-final-cta {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid #ebc7bf;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 4%, rgba(239, 182, 202, 0.32), transparent 25%),
    #fff0e9;
}

body[data-page="home"] .home-final-cta::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -98px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(187, 83, 111, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(187, 83, 111, 0.045), 0 0 0 58px rgba(187, 83, 111, 0.025);
  pointer-events: none;
}

body[data-page="home"] .home-final-cta > * {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .home-final-cta__eyebrow {
  margin: 0 0 10px;
  color: #b84d6d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .home-final-cta h2 {
  max-width: 620px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

body[data-page="home"] .home-final-cta h2 span {
  color: #d35b7c;
}

body[data-page="home"] .home-final-cta > p:not(.home-final-cta__eyebrow) {
  max-width: 555px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.52;
}

body[data-page="home"] .home-final-cta__action {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 24px;
}

body[data-page="home"] .home-final-cta__action .primary-btn {
  min-height: 47px;
  padding: 0 21px;
  border-radius: 14px;
  background: #df6383;
  box-shadow: 0 9px 18px rgba(210, 75, 111, 0.18);
}

body[data-page="home"] .home-final-cta__action > span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  body[data-page="home"] .song-template-carousel + .gift-stories,
  body[data-page="home"] .gift-stories + .home-tools,
  body[data-page="home"] .collections + .home-final-cta {
    margin-top: 36px !important;
  }

  body[data-page="home"] .gift-stories__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  body[data-page="home"] .gift-stories__head > span {
    padding: 0;
  }

  body[data-page="home"] .gift-stories__grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body[data-page="home"] .gift-story {
    min-height: 0;
    padding: 15px;
  }

  body[data-page="home"] .gift-story__art {
    height: 88px;
    margin-bottom: 15px;
  }

  body[data-page="home"] .home-final-cta {
    padding: 30px 20px;
    border-radius: 20px;
  }

  body[data-page="home"] .home-final-cta h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* 17. Примеры песен — яркая редакционная витрина вместо карточек-плееров. */
body[data-page="home"] .song-examples {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(129, 44, 16, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 93% 4%, rgba(255, 201, 119, 0.54), transparent 27%),
    linear-gradient(128deg, #ff8a3d 0%, #ff692e 54%, #ef542d 100%);
  box-shadow: 0 16px 34px rgba(174, 67, 28, 0.13);
}

body[data-page="home"] .song-examples::before,
body[data-page="home"] .song-examples::after {
  position: absolute;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255, 247, 235, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .song-examples::before {
  width: 390px;
  height: 390px;
  right: -205px;
  bottom: -272px;
}

body[data-page="home"] .song-examples::after {
  width: 220px;
  height: 220px;
  left: -154px;
  top: -150px;
}

body[data-page="home"] .song-examples__intro,
body[data-page="home"] .song-examples__list {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .song-examples__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page="home"] .song-examples__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff6df;
  content: "";
}

body[data-page="home"] .song-examples__intro h2 {
  max-width: 420px;
  margin: 0;
  color: #fffdf9;
  font-size: clamp(2.15rem, 4.1vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

body[data-page="home"] .song-examples__intro h2 span {
  color: #572719;
}

body[data-page="home"] .song-examples__lead {
  max-width: 350px;
  margin: 19px 0 23px;
  color: rgba(85, 38, 25, 0.86);
  font-size: 0.91rem;
  line-height: 1.48;
}

body[data-page="home"] .song-examples__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(86, 37, 22, 0.14);
  border-radius: 999px;
  background: #fff9f1;
  color: #522518;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

body[data-page="home"] .song-examples__cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

body[data-page="home"] .song-examples__cta span {
  font-size: 1rem;
  line-height: 1;
}

body[data-page="home"] .song-examples__list {
  display: grid;
  gap: 12px;
}

body[data-page="home"] .song-examples .song-example {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  min-height: 148px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.96);
  box-shadow: none;
}

body[data-page="home"] .song-examples .song-example::before {
  content: none;
}

body[data-page="home"] .song-example__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 122px;
  padding: 13px;
  overflow: hidden;
  border-radius: 12px;
  background: #5a291d;
  color: #fff8ec;
}

body[data-page="home"] .song-example__art::before {
  position: absolute;
  width: 108px;
  height: 108px;
  right: -38px;
  top: -37px;
  border: 1px solid rgba(255, 207, 130, 0.55);
  border-radius: 50%;
  content: "";
}

body[data-page="home"] .song-example__art::after {
  position: absolute;
  width: 50px;
  height: 50px;
  left: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: #ff8b46;
  content: "";
}

body[data-page="home"] .song-example--love .song-example__art {
  background: #853a2c;
}

body[data-page="home"] .song-example--love .song-example__art::after {
  background: #f15868;
}

body[data-page="home"] .song-example__art strong,
body[data-page="home"] .song-example__index,
body[data-page="home"] .song-example__art-note {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .song-example__art strong {
  font-size: 1rem;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

body[data-page="home"] .song-example__index {
  position: absolute;
  left: 13px;
  top: 12px;
  color: rgba(255, 247, 232, 0.64);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .song-example__art-note {
  position: absolute;
  right: 13px;
  bottom: 11px;
  color: #ffc168;
  font-size: 1.36rem;
  line-height: 1;
}

body[data-page="home"] .song-examples .song-example__content {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
}

body[data-page="home"] .song-examples .song-example__eyebrow {
  margin: 0 0 5px;
  color: #bd4d2e;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

body[data-page="home"] .song-examples .song-example__eyebrow::before {
  content: none;
}

body[data-page="home"] .song-examples .song-example h3 {
  margin: 0;
  color: #30232a;
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

body[data-page="home"] .song-examples .song-example__content > p:not(.song-example__eyebrow) {
  margin: 6px 0 0;
  color: #725c5a;
  font-size: 0.76rem;
  line-height: 1.38;
}

body[data-page="home"] .song-examples .song-example__meta {
  display: flex;
  gap: 7px;
  margin: 10px 0 0;
  color: #996759;
  font-size: 0.61rem;
  font-weight: 700;
}

body[data-page="home"] .song-examples .song-example__meta span + span::before {
  margin-right: 7px;
  color: #d69069;
  content: "•";
}

body[data-page="home"] .song-examples .song-example__content > a {
  width: max-content;
  margin-top: 10px;
  color: #9b3d29;
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-page="home"] .song-examples .song-example__content > a span {
  margin-left: 3px;
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body[data-page="home"] .song-examples__intro {
    max-width: 530px;
  }

  body[data-page="home"] .song-examples__lead {
    max-width: 440px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .song-examples {
    gap: 23px;
    padding: 27px 18px 18px;
    border-radius: 21px;
  }

  body[data-page="home"] .song-examples__intro h2 {
    font-size: clamp(2.1rem, 10.4vw, 3rem);
  }

  body[data-page="home"] .song-examples__lead {
    margin: 15px 0 18px;
    font-size: 0.84rem;
  }

  body[data-page="home"] .song-examples .song-example {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    min-height: 130px;
    padding: 10px;
    border-radius: 15px;
  }

  body[data-page="home"] .song-example__art {
    min-height: 108px;
    padding: 11px;
  }

  body[data-page="home"] .song-example__art strong {
    font-size: 0.88rem;
  }

  body[data-page="home"] .song-examples .song-example__content > p:not(.song-example__eyebrow) {
    font-size: 0.7rem;
  }

  body[data-page="home"] .song-examples .song-example__meta,
  body[data-page="home"] .song-examples .song-example__content > a {
    margin-top: 7px;
  }
}

/* 18. Примеры песен — лёгкая строка с обложкой, волной и данными о треке. */
body[data-page="home"] .song-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .song-examples::before,
body[data-page="home"] .song-examples::after {
  content: none;
}

body[data-page="home"] .song-examples .song-example {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 17px;
  min-height: 142px;
  padding: 0 0 17px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(100, 66, 72, 0.18);
  border-radius: 0;
  background: transparent;
}

body[data-page="home"] .song-examples .song-example::before {
  content: none;
}

body[data-page="home"] .song-examples .song-example__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 124px;
  padding: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 214, 142, 0.68), transparent 24%),
    linear-gradient(145deg, #ff8c67 0%, #f26b72 54%, #d955a2 100%);
  box-shadow: none;
}

body[data-page="home"] .song-example--love .song-example__cover {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 221, 149, 0.64), transparent 24%),
    linear-gradient(145deg, #a778cf 0%, #dd679d 55%, #ff8265 100%);
}

body[data-page="home"] .song-examples .song-example__cover::after {
  content: none;
}

body[data-page="home"] .song-example__cover-number,
body[data-page="home"] .song-example__cover-note,
body[data-page="home"] .song-example__cover-kicker,
body[data-page="home"] .song-example__cover-title {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .song-example__cover-number {
  position: absolute;
  top: 13px;
  left: 14px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .song-example__cover-note {
  position: absolute;
  top: 11px;
  right: 14px;
  display: block;
  color: rgba(255, 248, 231, 0.93);
  font-size: 1.28rem;
  line-height: 1;
}

body[data-page="home"] .song-examples .song-example__cover-kicker {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.075em;
}

body[data-page="home"] .song-examples .song-example__cover-title {
  color: #fffdf9;
  font-size: 1.12rem;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

body[data-page="home"] .song-examples .song-example__content {
  display: block;
  align-self: center;
}

body[data-page="home"] .song-examples .song-example__eyebrow {
  margin: 0 0 5px;
  color: #ba4d6c;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .song-examples .song-example__eyebrow::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: #f37991;
  box-shadow: none;
}

body[data-page="home"] .song-examples .song-example__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="home"] .song-examples .song-example h2 {
  margin: 0;
  color: #30232a;
  font-size: clamp(1.12rem, 1.5vw, 1.42rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

body[data-page="home"] .song-examples .song-example__title-row p {
  margin: 5px 0 0;
  color: #776269;
  font-size: 0.78rem;
  line-height: 1.38;
}

body[data-page="home"] .song-examples .song-example__duration {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(226, 91, 133, 0.2);
  border-radius: 999px;
  background: #fff3f5;
  color: #c54c71;
  font-size: 0.62rem;
  font-weight: 800;
}

body[data-page="home"] .song-examples .song-example__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  margin: 10px 0 7px;
}

body[data-page="home"] .song-examples .song-example__wave span {
  display: block;
  width: 3px;
  flex: 1 1 3px;
  max-width: 3px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff946d, #e8579b);
}

body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n + 1) { height: 16px; }
body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n + 2) { height: 27px; }
body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n + 3) { height: 10px; }
body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n + 4) { height: 32px; }
body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n + 5) { height: 20px; }
body[data-page="home"] .song-examples .song-example__wave span:nth-child(6n) { height: 14px; }

body[data-page="home"] .song-examples .song-example__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #998087;
  font-size: 0.63rem;
  font-weight: 700;
}

body[data-page="home"] .song-examples .song-example__meta span + span::before {
  margin-right: 7px;
  color: #df899e;
  content: "•";
}

@media (max-width: 760px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }

  body[data-page="home"] .song-examples .song-example {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    min-height: 116px;
    padding-bottom: 15px;
  }

  body[data-page="home"] .song-examples .song-example__cover {
    min-height: 112px;
    padding: 12px;
    border-radius: 14px;
  }

  body[data-page="home"] .song-examples .song-example__title-row p {
    font-size: 0.72rem;
  }

  body[data-page="home"] .song-examples .song-example__wave {
    height: 28px;
    margin: 8px 0 6px;
  }
}

/* 19. Примеры и клип — компактная композиция по центру. */
body[data-page="home"] .hero-duo--single {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="home"] .song-examples {
  grid-template-columns: max-content minmax(360px, 430px) max-content;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
}

body[data-page="home"] .song-examples .song-example {
  width: fit-content;
  grid-template-columns: 118px fit-content(265px);
  justify-self: center;
  align-self: center;
}

body[data-page="home"] .song-examples .song-example__content {
  max-width: 265px;
}

body[data-page="home"] .song-examples > .hero-banner--inline {
  width: min(430px, 100%);
  min-height: 152px;
  height: 152px;
  padding: 18px;
  justify-self: center;
  align-self: center;
  border-radius: 19px;
  box-shadow: 0 10px 24px rgba(68, 39, 50, 0.07);
}

body[data-page="home"] .song-examples > .hero-banner--inline .hero-media {
  left: 43%;
  background-size: auto 112%;
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.14) 10%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.14) 10%, #000 45%);
}

body[data-page="home"] .song-examples > .hero-banner--inline .eyebrow {
  max-width: 54%;
  margin: 0 0 7px;
  font-size: 0.6rem;
}

body[data-page="home"] .song-examples > .hero-banner--inline :is(h1, h2) {
  max-width: 57%;
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  line-height: 0.98;
}

body[data-page="home"] .song-examples > .hero-banner--inline .hero-text {
  display: none;
}

body[data-page="home"] .song-examples > .hero-banner--inline .primary-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 0.68rem;
}

body[data-page="home"] .song-examples > .hero-banner--inline .hero-slides {
  right: 13px;
  bottom: 11px;
}

@media (max-width: 1320px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: max-content;
    gap: 19px;
  }

  body[data-page="home"] .song-examples > .hero-banner--inline {
    width: min(430px, 100%);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body[data-page="home"] .song-examples .song-example {
    width: 100%;
    grid-template-columns: 100px minmax(0, 1fr);
  }

  body[data-page="home"] .song-examples .song-example__content {
    max-width: none;
  }

  body[data-page="home"] .song-examples > .hero-banner--inline {
    width: 100%;
    min-height: 138px;
    height: 138px;
    padding: 16px;
  }
}

/* 20. Промо клипа располагается между набором материалов и следующим блоком. */
body[data-page="home"] .song-examples {
  grid-template-columns: max-content max-content;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
}

body[data-page="home"] .delivery-kit + .hero-banner--interlude {
  width: 100%;
  min-height: 268px;
  height: 268px;
  margin-top: 24px !important;
  padding: 28px 32px;
}

body[data-page="home"] .hero-banner--interlude + .song-assurance {
  margin-top: 24px !important;
}

body[data-page="home"] .hero-banner--interlude .hero-media {
  left: 49%;
  background-size: auto 106%;
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 40%);
}

body[data-page="home"] .hero-banner--interlude :is(h1, h2) {
  max-width: 45%;
}

body[data-page="home"] .hero-banner--interlude .hero-text {
  max-width: 38%;
}

@media (max-width: 900px) {
  body[data-page="home"] .song-examples {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body[data-page="home"] .song-examples .song-example {
    width: min(100%, 430px);
  }

  body[data-page="home"] .delivery-kit + .hero-banner--interlude {
    min-height: 230px;
    height: 230px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .delivery-kit + .hero-banner--interlude {
    min-height: 208px;
    height: 208px;
    margin-top: 18px !important;
    padding: 20px;
    border-radius: 20px;
  }

  body[data-page="home"] .hero-banner--interlude .hero-media {
    left: 45%;
    background-size: auto 100%;
  }

  body[data-page="home"] .hero-banner--interlude :is(h1, h2) {
    max-width: 58%;
    font-size: clamp(1.42rem, 7.6vw, 2rem);
  }

  body[data-page="home"] .hero-banner--interlude .hero-text {
    max-width: 54%;
    margin-bottom: 13px;
    font-size: 0.76rem;
  }

  body[data-page="home"] .hero-banner--interlude + .song-assurance {
    margin-top: 18px !important;
  }
}

/* 21. Главный подарок — текст и иллюстрация собраны в единую композицию. */
body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] {
  display: flex;
  align-items: center;
  min-height: 360px;
  height: 360px;
  padding: 0 32px;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
  width: 390px;
  min-height: 0;
  flex: 0 0 390px;
  margin-left: max(0px, calc(50% - 385px));
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
  left: calc(50% + 20px);
  right: auto;
  width: min(330px, 28vw);
  background-size: auto 103%;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, #000 16%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, #000 16%);
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .eyebrow {
  margin: 0 0 13px;
  font-size: 0.72rem;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 3.2vw, 3.45rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.45;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .primary-btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
    width: 350px;
    flex-basis: 350px;
    margin-left: max(0px, calc(50% - 335px));
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: calc(50% + 12px);
    width: 280px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] {
    display: block;
    min-height: 300px;
    height: auto;
    padding: 22px 20px;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: 43%;
    width: auto;
    right: 0;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
    max-width: 72%;
    font-size: clamp(2rem, 8.6vw, 2.6rem);
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text {
    max-width: 68%;
    font-size: 0.86rem;
  }
}

/* 22. Фон главной: яркий оранжевый оттенок с прозрачностью 90%. */
body[data-page="home"] {
  background:
    linear-gradient(90deg, rgba(255, 120, 54, 0.1) 0%, rgba(255, 120, 54, 0.1) 40%, rgba(255, 120, 54, 0.035) 54%, #fffdfb 76%, #fffdfb 100%);
  background-attachment: fixed;
}

/* 23. Первый экран — выверенные размеры и вертикальный ритм. */
body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
  width: 440px;
  flex-basis: 440px;
  margin-left: max(0px, calc(50% - 385px));
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
  left: calc(50% + 24px);
  width: min(315px, 27vw);
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .eyebrow {
  margin-bottom: 12px;
  font-size: 0.7rem;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
  margin-bottom: 13px;
  font-size: clamp(2.35rem, 2.6vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text {
  max-width: 410px;
  margin-bottom: 18px;
  font-size: 0.94rem;
  line-height: 1.42;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .primary-btn {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
    width: 370px;
    flex-basis: 370px;
    margin-left: max(0px, calc(50% - 340px));
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: calc(50% + 8px);
    width: 275px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-overlay {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
    max-width: 72%;
    font-size: clamp(1.92rem, 8.1vw, 2.4rem);
    line-height: 1;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text {
    max-width: 68%;
    margin-bottom: 16px;
    font-size: 0.84rem;
  }
}

/* 24. Финальная расстановка элементов первого экрана. */
body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] > .eyebrow {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 32px;
  margin: 0;
  font-size: 0.7rem;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
  left: calc(50% + 10px);
  right: auto;
  width: min(380px, 31vw);
  overflow: visible;
  background-size: contain;
  background-position: center bottom;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
  position: relative;
  left: -32px;
  top: -14px;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text {
  position: relative;
  left: 14px;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .primary-btn {
  position: relative;
  left: 24px;
  top: 9px;
}

@media (max-width: 900px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: calc(50% + 2px);
    width: min(320px, 36vw);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] > .eyebrow {
    top: 17px;
    left: 20px;
    font-size: 0.62rem;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: 43%;
    right: 0;
    width: auto;
    overflow: hidden;
    background-size: contain;
    background-position: right bottom;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2),
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-text,
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .primary-btn {
    left: auto;
    top: auto;
  }
}

/* 25. Акцентный подарок: крупная типографика, полный портрет, тёплая заливка. */
body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] {
  border-color: #f1d6cb;
  background: #fff0e7;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
  left: calc(50% + 73px);
  width: min(440px, 36vw);
  background-size: auto 96%;
  background-position: center bottom;
}

body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
  left: -70px;
  font-size: clamp(2.6rem, 3.1vw, 3.35rem);
  line-height: 0.96;
}

@media (min-width: 761px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: calc(50% + 34px);
    width: min(365px, 43vw);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] {
    background: #fff3ec;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] .hero-media {
    left: 43%;
    right: 0;
    width: auto;
    background-size: auto 96%;
  }

  body[data-page="home"] .hero-duo--single .hero-banner[data-hero-group="0"] :is(h1, h2) {
    left: auto;
    white-space: normal;
    font-size: clamp(2.05rem, 8.8vw, 2.65rem);
  }
}

/* 26. Главный подарок — один статичный сценарий вместо перегруженного слайдера. */
body[data-page="home"] .gift-song-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 470px) minmax(340px, 420px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  min-height: 410px;
  padding: clamp(32px, 4vw, 54px) clamp(28px, 5vw, 74px);
  overflow: hidden;
  border: 1px solid #f1d6cb;
  border-radius: 28px;
  background: #fff0e7;
}

body[data-page="home"] .gift-song-showcase::before {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -190px;
  border: 1px solid rgba(224, 107, 82, 0.2);
  border-radius: 50%;
  content: "";
}

body[data-page="home"] .gift-song-showcase__copy {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .gift-song-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #ba4d6c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .gift-song-showcase__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ed6b83;
  content: "";
}

body[data-page="home"] .gift-song-showcase h1 {
  margin: 0;
  color: #30232a;
  font-size: clamp(2.55rem, 4.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

body[data-page="home"] .gift-song-showcase h1 span {
  color: #df5d80;
}

body[data-page="home"] .gift-song-showcase__copy > p:not(.gift-song-showcase__eyebrow) {
  max-width: 410px;
  margin: 21px 0 25px;
  color: #725c5a;
  font-size: 1rem;
  line-height: 1.48;
}

body[data-page="home"] .gift-song-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

body[data-page="home"] .gift-song-showcase__actions .primary-btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.9rem;
}

body[data-page="home"] .gift-song-showcase__examples {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8f4560;
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-page="home"] .gift-song-showcase__examples span {
  transition: transform 180ms ease;
}

body[data-page="home"] .gift-song-showcase__examples:hover span {
  transform: translateY(3px);
}

body[data-page="home"] .gift-song-showcase__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 300px;
}

body[data-page="home"] .gift-song-showcase__halo {
  position: absolute;
  width: 285px;
  height: 285px;
  left: 50%;
  bottom: 3px;
  border-radius: 50%;
  background: #ffd9c9;
  transform: translateX(-50%);
}

body[data-page="home"] .gift-song-showcase__portrait {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero/mom-anniversary-song.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transition: transform 280ms ease;
}

body[data-page="home"] .gift-song-showcase:hover .gift-song-showcase__portrait {
  transform: translateY(-4px) scale(1.015);
}

body[data-page="home"] .gift-song-showcase + .song-examples {
  margin-top: 24px !important;
}

@media (max-width: 900px) {
  body[data-page="home"] .gift-song-showcase {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    min-height: 360px;
    padding: 34px 36px;
  }

  body[data-page="home"] .gift-song-showcase h1 {
    font-size: clamp(2.35rem, 5vw, 3.3rem);
  }

  body[data-page="home"] .gift-song-showcase__visual {
    min-height: 270px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .gift-song-showcase {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 28px 20px 0;
    border-radius: 21px;
  }

  body[data-page="home"] .gift-song-showcase h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.2rem);
  }

  body[data-page="home"] .gift-song-showcase__copy > p:not(.gift-song-showcase__eyebrow) {
    margin: 16px 0 19px;
    font-size: 0.88rem;
  }

  body[data-page="home"] .gift-song-showcase__actions {
    gap: 13px;
  }

  body[data-page="home"] .gift-song-showcase__visual {
    min-height: 260px;
    margin-top: 8px;
  }

  body[data-page="home"] .gift-song-showcase__halo {
    width: 242px;
    height: 242px;
  }

  body[data-page="home"] .gift-song-showcase + .song-examples {
    margin-top: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .gift-song-showcase__portrait,
  body[data-page="home"] .gift-song-showcase__examples span {
    transition: none;
  }
}

/* 27. Новый арт-дирекшн главного подарка: простая сетка без ручных смещений. */
body[data-page="home"] .gift-song-showcase {
  grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 96px);
  min-height: 430px;
  padding: 38px clamp(34px, 5vw, 78px);
  border-color: #efd8ce;
  border-radius: 30px;
  background: #fff3ed;
}

body[data-page="home"] .gift-song-showcase::before {
  width: 480px;
  height: 480px;
  left: -145px;
  right: auto;
  top: auto;
  bottom: -265px;
  border-color: rgba(222, 105, 81, 0.16);
}

body[data-page="home"] .gift-song-showcase__visual {
  grid-column: 1;
  grid-row: 1;
  order: 1;
  min-height: 354px;
}

body[data-page="home"] .gift-song-showcase__copy {
  grid-column: 2;
  grid-row: 1;
  order: 2;
  align-self: center;
  max-width: 470px;
}

body[data-page="home"] .gift-song-showcase__eyebrow {
  margin-bottom: 17px;
  color: #b85169;
  font-size: 0.61rem;
}

body[data-page="home"] .gift-song-showcase h1 {
  font-size: clamp(2.75rem, 4vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 0.93;
}

body[data-page="home"] .gift-song-showcase__copy > p:not(.gift-song-showcase__eyebrow) {
  max-width: 400px;
  margin: 20px 0 26px;
  color: #725c5a;
  font-size: 0.96rem;
  line-height: 1.5;
}

body[data-page="home"] .gift-song-showcase__actions {
  gap: 17px;
}

body[data-page="home"] .gift-song-showcase__halo {
  width: 338px;
  height: 338px;
  left: 48%;
  bottom: -3px;
  background: #ffd8c8;
  filter: blur(15px);
  opacity: 0.76;
}

body[data-page="home"] .gift-song-showcase__portrait {
  background-position: center bottom;
  background-size: contain;
}

@media (max-width: 900px) {
  body[data-page="home"] .gift-song-showcase {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 30px;
    min-height: 370px;
    padding: 30px 34px;
  }

  body[data-page="home"] .gift-song-showcase__visual {
    min-height: 290px;
  }

  body[data-page="home"] .gift-song-showcase h1 {
    font-size: clamp(2.35rem, 4.5vw, 3.15rem);
  }

  body[data-page="home"] .gift-song-showcase__halo {
    width: 278px;
    height: 278px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .gift-song-showcase {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 20px 0;
    border-radius: 22px;
  }

  body[data-page="home"] .gift-song-showcase__copy {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  body[data-page="home"] .gift-song-showcase__visual {
    grid-column: 1;
    grid-row: 2;
    order: 2;
    min-height: 270px;
    margin-top: 10px;
  }

  body[data-page="home"] .gift-song-showcase h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.25rem);
  }

  body[data-page="home"] .gift-song-showcase__halo {
    width: 260px;
    height: 260px;
    left: 50%;
  }
}
