/* ====== STUDIO HERO ====== */
.studio-hero { margin-bottom: var(--space-10); }
.studio-hero__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--space-3); }
.studio-hero__sub { color: var(--text-secondary); font-size: 16px; max-width: 560px; }

/* ====== STEP 0: ACTION CARDS ====== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--t-normal) var(--ease);
  text-align: left;
}
.action-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 200px at 100% 0%, var(--gold-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-normal) var(--ease);
  pointer-events: none;
}
.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 32px rgba(0,0,0,.5), var(--shadow-gold);
}
.action-card:hover::after { opacity: 1; }
.action-card.active {
  border-color: var(--border-gold-strong);
  background: linear-gradient(180deg, rgba(214,178,92,.08), var(--bg-2));
}
.action-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.action-card__icon svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }
.action-card__title { font-size: 16px; font-weight: 700; position: relative; }
.action-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; position: relative; }
.action-card__cost {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  position: relative;
}

/* ====== STUDIO SECTIONS (step 01, 02, 03...) ====== */
.studio-steps { display: flex; flex-direction: column; gap: var(--space-6); }
.studio-step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.studio-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
.studio-step__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  gap: var(--space-4);
  cursor: pointer;
}
.studio-step__head:hover { background: rgba(255,255,255,.015); }
.studio-step__head-left { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.studio-step__num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  letter-spacing: .05em;
}
.studio-step__label { display: flex; flex-direction: column; min-width: 0; }
.studio-step__title { font-size: 16px; font-weight: 700; }
.studio-step__hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.studio-step__chev {
  flex: none;
  width: 24px; height: 24px;
  stroke: var(--text-muted);
  fill: none; stroke-width: 1.8;
  transition: transform var(--t-fast) var(--ease);
}
.studio-step.open .studio-step__chev { transform: rotate(180deg); }

.studio-step__body {
  padding: 0 var(--space-6) var(--space-6);
  display: none;
}
.studio-step.open .studio-step__body { display: block; }

/* ====== LYRICS TEXTAREA ====== */
.lyrics-wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.lyrics-wrap textarea {
  min-height: 140px;
  padding: var(--space-4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  transition: all var(--t-fast) var(--ease);
}
.lyrics-wrap textarea:focus {
  outline: none;
  border-color: var(--border-gold-strong);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.lyrics-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ====== IDEA ====== */
.idea-wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.idea-wrap textarea {
  min-height: 180px;
  padding: var(--space-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}
.idea-wrap textarea:focus {
  outline: none;
  border-color: var(--border-gold-strong);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.idea-buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.idea-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.idea-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.idea-btn:hover { color: var(--gold-light); }
.idea-btn__text {
  background: linear-gradient(90deg, #e9cf8f, #f4e3ae, #e9cf8f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ====== RELEASE (title/artist) ====== */
.release-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ====== SOUND (Жанр/Настроение/Язык/Вокал/Тип) ====== */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.sound-type { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.type-chip {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.type-chip:hover { border-color: var(--border-gold); color: var(--gold-light); }
.type-chip.active {
  background: var(--gold-glow);
  border-color: var(--border-gold-strong);
  color: var(--gold-light);
}

/* ====== GENERATE FOOTER ====== */
.generate-footer {
  position: sticky;
  bottom: var(--space-6);
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  box-shadow: 0 10px 40px rgba(0,0,0,.6), var(--shadow-gold);
}
.generate-footer__cost { display: flex; align-items: center; gap: var(--space-3); }
.generate-footer__cost-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.generate-footer__cost-icon svg { width: 18px; height: 18px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }
.generate-footer__cost-text { display: flex; flex-direction: column; gap: 2px; }
.generate-footer__cost-amount { font-size: 16px; font-weight: 700; color: var(--text); }
.generate-footer__cost-label { font-size: 11px; color: var(--text-secondary); }

.btn-generate {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1408;
  border: 0;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(214,178,92,.35);
  transition: all var(--t-fast) var(--ease);
  text-transform: uppercase;
}
.btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(214,178,92,.55);
}
.btn-generate svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ====== MODAL (сценарий-степпер) ====== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: var(--space-4);
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), var(--shadow-gold);
  position: relative;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}
.modal__close:hover { color: var(--gold-light); border-color: var(--border-gold); }
.modal__close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.modal__step-indicator {
  display: flex; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.modal__step-dot {
  flex: 1; height: 3px;
  background: var(--border);
  border-radius: 3px;
  transition: background var(--t-fast) var(--ease);
}
.modal__step-dot.active { background: var(--gold); }
.modal__step-dot.done { background: var(--gold-dark); }
.modal__title { font-size: 24px; font-weight: 800; margin-bottom: var(--space-2); }
.modal__sub { color: var(--text-secondary); margin-bottom: var(--space-6); }
.modal__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.modal__option {
  padding: var(--space-4);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.modal__option:hover {
  border-color: var(--border-gold-strong);
  background: var(--gold-glow);
  color: var(--gold-light);
}
.modal__actions { display: flex; justify-content: flex-end; gap: var(--space-3); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sound-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal__options { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .action-grid { grid-template-columns: 1fr; }
  .sound-grid { grid-template-columns: 1fr; }
  .release-grid { grid-template-columns: 1fr; }
  .generate-footer { flex-direction: column; align-items: stretch; text-align: center; bottom: var(--space-3); }
  .generate-footer__cost { justify-content: center; }
  .btn-generate { width: 100%; justify-content: center; }
  .modal__options { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal { padding: var(--space-5); }
}

/* ====== ЧИПСЫ ЗВУЧАНИЯ ====== */
.field--wide { grid-column: 1 / -1; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.snd-chip {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
  color: #cfc8bb; cursor: pointer; transition: all .2s ease;
}
.snd-chip:hover { border-color: rgba(232,196,118,0.55); color: #f0d9a8; }
.snd-chip.active {
  background: linear-gradient(135deg, #f2d18b 0%, #d9ab52 100%);
  border-color: transparent; color: #1a1408; font-weight: 700;
  box-shadow: 0 3px 12px rgba(217,171,82,0.3);
}
.chip-counter {
  font-size: 11px; font-weight: 600; color: #e8c476;
  background: rgba(232,196,118,0.15); padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.chip-counter.maxed { color: #ff6b6b; background: rgba(255,107,107,0.15); }
.field__hint { font-size: 11px; color: #9a917f; margin-top: 6px; font-style: italic; }

/* ====== БАННЕР ПЕРЕНОСА СТИЛЕЙ ====== */
.transfer-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(232,196,118,0.4); border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,196,118,0.10), rgba(232,196,118,0.03));
  padding: 12px 14px; margin-bottom: 14px;
}
.transfer-note__ic { width: 18px; height: 18px; fill: #e8c476; flex-shrink: 0; margin-top: 2px; }
.transfer-note__title { color: #f0d9a8; font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.transfer-note__text { color: #cfc8bb; font-size: 12px; line-height: 1.5; }

/* ====== БАР БЫСТРОГО СТАРТА ====== */
.quickstart-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid rgba(232,196,118,0.35); border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,196,118,0.08), rgba(20,16,10,0.4));
  padding: 14px 18px; margin-bottom: var(--space-5);
}
.quickstart-bar__left { display: flex; align-items: center; gap: 12px; }
.quickstart-bar__icon { font-size: 22px; filter: drop-shadow(0 0 10px rgba(232,196,118,0.6)); }
.quickstart-bar__title { color: #f0d9a8; font-weight: 700; font-size: 15px; }
.quickstart-bar__sub { color: #9a917f; font-size: 12px; margin-top: 2px; }

/* ====== СТЕППЕР: ввод, идея, назад ====== */
.modal__inputwrap { display: flex; gap: 8px; margin-top: 12px; }
.modal__inputwrap .input { flex: 1; }
.modal__idea {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(232,196,118,0.35); background: rgba(232,196,118,0.06);
  color: #f0d9a8; font-size: 13px; line-height: 1.55; white-space: pre-wrap;
}
.modal__actions { gap: 8px; }

/* ====== МОДАЛКА ПОДТВЕРЖДЕНИЯ (дизайн SONARO) ====== */
.sz-modal-overlay {
  position: fixed; inset: 0; background: rgba(5,3,0,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 999;
  opacity: 0; transition: opacity .22s ease;
}
.sz-modal-overlay.show { opacity: 1; }
.sz-modal {
  width: min(420px, calc(100vw - 32px));
  background: linear-gradient(160deg, #1c1509 0%, #14100a 100%);
  border: 1px solid rgba(232,196,118,0.35); border-radius: 18px; padding: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.7); transform: scale(.9) translateY(10px);
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1); text-align: center;
}
.sz-modal-overlay.show .sz-modal { transform: scale(1) translateY(0); }
.sz-modal__icon { font-size: 28px; color: #e8c476; margin-bottom: 10px; text-shadow: 0 0 20px rgba(232,196,118,0.6); }
.sz-modal__title { color: #f0d9a8; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.sz-modal__text { color: #cfc8bb; font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.sz-modal__actions { display: flex; gap: 10px; justify-content: center; }

/* ====== КАСТОМНЫЙ DROPDOWN (золотой стиль SONARO) ====== */
.sz-select { position: relative; margin-top: 6px; }
.sz-select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03); color: #cfc8bb; font-size: 13px; cursor: pointer;
  transition: border-color .2s, color .2s; text-align: left;
}
.sz-select.has .sz-select__btn { border-color: rgba(232,196,118,0.5); color: #f0d9a8; }
.sz-select.open .sz-select__btn { border-color: #e8c476; }
.sz-select__chev { width: 14px; height: 14px; fill: #9a917f; transition: transform .2s; flex-shrink: 0; }
.sz-select.open .sz-select__chev { transform: rotate(180deg); fill: #e8c476; }
.sz-select__panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: 250px; overflow-y: auto; background: #171208;
  border: 1px solid rgba(232,196,118,0.35); border-radius: 12px; padding: 6px;
  display: none; box-shadow: 0 16px 44px rgba(0,0,0,0.65);
}
.sz-select.open .sz-select__panel { display: block; }
.sz-select__opt {
  display: flex; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px;
  border: 0; background: transparent; color: #cfc8bb; font-size: 13px; cursor: pointer;
}
.sz-select__opt:hover { background: rgba(232,196,118,0.10); color: #f0d9a8; }
.sz-select__opt.on { background: linear-gradient(135deg, #f2d18b, #d9ab52); color: #1a1408; font-weight: 700; }
.sz-select--multi .sz-select__opt.on::after { content: '✓'; margin-left: auto; }

/* ====== КНОПКИ ИДЕИ В ШАПКЕ БЛОКА 02 ====== */
.studio-step__head-actions { display: flex; gap: 8px; margin-left: auto; margin-right: 14px; }
.idea-action {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 11px;
  border: 1px solid rgba(232,196,118,0.45); background: rgba(232,196,118,0.07);
  color: #f0d9a8; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.idea-action:hover { background: rgba(232,196,118,0.16); border-color: #e8c476; box-shadow: 0 4px 16px rgba(217,171,82,0.25); }
.idea-action__ic { width: 19px; height: 19px; fill: #e8c476; filter: drop-shadow(0 0 8px rgba(232,196,118,0.5)); }

/* ====== МОЛНИЯ БЫСТРОГО СТАРТА ====== */
.quickstart-bar__ic { width: 22px; height: 22px; fill: #e8c476; filter: drop-shadow(0 0 10px rgba(232,196,118,0.6)); flex-shrink: 0; }

/* ====== DROPDOWN v2: дорого, крупно, графит ====== */
.sz-select__btn {
  padding: 13px 16px !important; font-size: 14px !important; border-radius: 13px !important;
  background: rgba(255,255,255,0.02) !important; border-color: rgba(255,255,255,0.10) !important;
  color: #d8d2c6 !important;
}
.sz-select.has .sz-select__btn {
  border-color: rgba(232,196,118,0.35) !important; color: #f0d9a8 !important;
  background: rgba(232,196,118,0.04) !important;
}
.sz-select__panel {
  background: #100e0a !important; border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 14px !important; max-height: 320px !important; padding: 8px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75) !important;
}
.sz-select__opt { padding: 12px 14px !important; font-size: 14px !important; border-radius: 10px !important; color: #b9b2a6 !important; }
.sz-select__opt:hover { background: rgba(255,255,255,0.05) !important; color: #f0d9a8 !important; }
.sz-select__opt.on {
  background: rgba(232,196,118,0.10) !important; color: #f0d9a8 !important; font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(232,196,118,0.45) !important;
}
.sz-select__panel::-webkit-scrollbar, .modal__options::-webkit-scrollbar { width: 8px; }
.sz-select__panel::-webkit-scrollbar-thumb, .modal__options::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 8px; }
.sz-select__panel::-webkit-scrollbar-track, .modal__options::-webkit-scrollbar-track { background: transparent; }

/* три поля звучания в один ряд */
.sound-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; grid-column: 1 / -1; }
@media (max-width: 900px) { .sound-row-3 { grid-template-columns: 1fr; } }

/* модалка сценариев: крупнее и дороже */
.modal { width: min(600px, calc(100vw - 32px)) !important; }
.modal__options {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important;
  max-height: 340px; overflow-y: auto;
}
.modal__option {
  padding: 13px 16px !important; font-size: 14px !important; border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,0.10) !important; background: rgba(255,255,255,0.02) !important;
  color: #cfc8bb !important; text-align: left !important;
}
.modal__option:hover { border-color: rgba(232,196,118,0.5) !important; background: rgba(232,196,118,0.06) !important; color: #f0d9a8 !important; }
.modal__option--custom { border-style: dashed !important; color: #e8c476 !important; }
.sound-row-3 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1100px) { .sound-row-3 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 700px) { .sound-row-3 { grid-template-columns: 1fr !important; } }

/* ====== СТУДИЙНЫЙ САЙДБАР ====== */
.studio-sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  align-self: flex-start;
}
.studio-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  padding: 0 var(--space-2);
}
.studio-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-sidebar__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.studio-sidebar__btn:hover {
  background: rgba(232, 196, 118, 0.08);
  color: #f0d9a8;
}
.studio-sidebar__btn.active {
  background: linear-gradient(135deg, #f2d18b 0%, #d9ab52 100%);
  color: #1a1408;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(217, 171, 82, 0.3);
}
.studio-sidebar__ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.studio-sidebar__btn:not(.active) .studio-sidebar__ic {
  stroke: currentColor;
}
.studio-sidebar__btn.active .studio-sidebar__ic {
  stroke: #1a1408;
}

/* ====== LAYOUT: САЙДБАР + КОНТЕНТ ====== */
.page-wrap {
  display: flex;
  min-height: calc(100vh - 64px);
  gap: 0;
}
.page-wrap > main {
  flex: 1;
  min-width: 0;
}

/* ====== ПАНЕЛИ ИНСТРУМЕНТОВ ====== */
.tool-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6);
}
.tool-panel__head {
  margin-bottom: var(--space-5);
}
.tool-panel__head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}
.tool-panel__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.tool-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tool-panel__body .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-panel__body .input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.tool-panel__body .input:focus {
  border-color: rgba(232,196,118,0.5);
  outline: none;
}
.tool-panel__body textarea.input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.tool-panel__actions {
  display: flex;
  gap: 10px;
  margin-top: var(--space-3);
}
.tool-panel__actions .btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .studio-sidebar {
    display: none;
  }
  .page-wrap {
    flex-direction: column;
  }
}

/* ====== FIX: сайдбар fixed + отступ контента ====== */
.studio-sidebar {
  position: fixed !important;
  left: var(--sidebar-w, 260px);
  top: 64px;
  bottom: 0;
  width: 232px;
  min-height: 0 !important;
  overflow-y: auto;
  z-index: 40;
  background: #0c0a07;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
}
main.content { margin-left: 232px; }
.studio-sidebar__ic { fill: none; stroke: currentColor; }
.studio-sidebar__btn.active .studio-sidebar__ic { stroke: #1a1408; }
@media (max-width: 1000px) {
  .studio-sidebar { display: none; }
  main.content { margin-left: 0; }
}

/* ====== САЙДБАР НА УРОВНЕ ГЛАВНОГО МЕНЮ (во всю высоту) ====== */
.studio-sidebar {
  top: 0 !important;
  bottom: 0 !important;
  padding-top: 150px !important;
  z-index: 45;
}

/* ====== ОБЛАСТЬ ПАНЕЛЕЙ ИНСТРУМЕНТОВ ====== */
.tools-area { margin-left: 232px; }
.tools-area .tool-panel { max-width: 900px; margin: 0 auto; padding: 48px 28px; }
@media (max-width: 1000px) { .tools-area { margin-left: 0; } }

/* ====== WOW-АНИМАЦИИ ====== */
@keyframes szSidebarIn {
  from { transform: translateX(-36px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes szItemIn {
  from { transform: translateX(-16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes szPanelIn {
  from { transform: translateY(22px) scale(0.985); opacity: 0; filter: blur(4px); }
  to   { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes szGlow {
  0%, 100% { box-shadow: 0 3px 12px rgba(217,171,82,0.30); }
  50%      { box-shadow: 0 3px 22px rgba(217,171,82,0.55); }
}

.studio-sidebar { animation: szSidebarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.studio-sidebar__title { animation: szItemIn 0.4s ease both; }
.studio-sidebar__btn { animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.studio-sidebar__btn:nth-child(1) { animation-delay: 0.06s; }
.studio-sidebar__btn:nth-child(2) { animation-delay: 0.11s; }
.studio-sidebar__btn:nth-child(3) { animation-delay: 0.16s; }
.studio-sidebar__btn:nth-child(4) { animation-delay: 0.21s; }
.studio-sidebar__btn:nth-child(5) { animation-delay: 0.26s; }
.studio-sidebar__btn:nth-child(6) { animation-delay: 0.31s; }
.studio-sidebar__btn:nth-child(7) { animation-delay: 0.36s; }
.studio-sidebar__btn:nth-child(8) { animation-delay: 0.41s; }
.studio-sidebar__btn.active { animation: szItemIn 0.45s both, szGlow 2.6s ease-in-out 0.6s infinite; }

/* контент и панели въезжают при каждом переключении */
main.content:not([hidden]) { animation: szPanelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.tool-panel:not([hidden])  { animation: szPanelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* карточки-пресеты на главной студии тоже оживают */
@keyframes szCardIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
main.content .preset-card, main.content .studio-step { animation: szCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
main.content .studio-step:nth-of-type(1) { animation-delay: 0.10s; }
main.content .studio-step:nth-of-type(2) { animation-delay: 0.18s; }
main.content .studio-step:nth-of-type(3) { animation-delay: 0.26s; }
main.content .studio-step:nth-of-type(4) { animation-delay: 0.34s; }

/* =========================================================
   SONARO STUDIO — ВОЗВРАТ ВТОРОГО МЕНЮ ИНСТРУМЕНТОВ + WOW
   ========================================================= */

.studio-tools-nav {
  width: 232px;
  flex: 0 0 232px;
  padding: 18px 12px;
  background: #0c0a07;
  border-right: 1px solid var(--border);
  align-self: stretch;
  box-sizing: border-box;

  animation: szSidebarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.studio-tools-nav__title {
  padding: 4px 12px 12px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;

  animation: szItemIn 0.4s ease both;
}

.studio-tools-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  margin: 2px 0;
  gap: 11px;

  border: 0;
  border-radius: 7px;
  background: transparent;

  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;

  cursor: pointer;
  box-sizing: border-box;

  box-shadow: none;
  transition:
    background .16s ease,
    color .16s ease;
}

.studio-tools-nav__item:hover {
  background: rgba(232, 196, 118, .055);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.studio-tools-nav__item.active {
  background: rgba(232, 196, 118, .10);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: none;
  transform: none;

  animation:
    szItemIn 0.45s both,
    szGlow 2.6s ease-in-out 0.6s infinite;
}

.studio-tools-nav__item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.studio-tools-nav__item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;

  opacity: .78;
}

.studio-tools-nav__item.active svg {
  opacity: 1;
  stroke: var(--gold-light);
}

/* WOW: инструменты появляются последовательно */
.studio-tools-nav__item:nth-of-type(1) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both,
             szGlow 2.6s ease-in-out 0.6s infinite;
}

.studio-tools-nav__item:nth-of-type(2) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.11s both;
}

.studio-tools-nav__item:nth-of-type(3) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.studio-tools-nav__item:nth-of-type(4) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.21s both;
}

.studio-tools-nav__item:nth-of-type(5) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.studio-tools-nav__item:nth-of-type(6) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.31s both;
}

.studio-tools-nav__item:nth-of-type(7) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.studio-tools-nav__item:nth-of-type(8) {
  animation: szItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.41s both;
}

}

@media (max-width: 900px) {
  .studio-tools-nav {
    width: 100%;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
  }

  .studio-tools-nav__item {
    min-height: 40px;
  }
}

/* ====== LAYOUT FIX v3: главный сайдбар (260px) + studio sidebar (232px) ====== */
main.content,
.tools-area {
  margin-left: calc(var(--sidebar-w, 260px) + 232px) !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 1400px !important;
  box-sizing: border-box !important;
}

/* studio sidebar висит слева от контента, справа от главного сайдбара */
.studio-sidebar {
  position: fixed !important;
  left: var(--sidebar-w, 260px) !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 232px !important;
  padding-top: 100px !important;
  background: #0c0a07;
  border-right: 1px solid var(--border);
  z-index: 45;
  overflow-y: auto;
  display: flex !important;
}

/* На узких экранах прячем studio sidebar, контент прилипает к главному */
@media (max-width: 1100px) {
  .studio-sidebar { display: none !important; }
  main.content, .tools-area {
    margin-left: var(--sidebar-w, 260px) !important;
  }
}
@media (max-width: 768px) {
  main.content, .tools-area { margin-left: 0 !important; }
}

/* ====== САЙДБАР-СПИСОК v4 ====== */
.studio-sidebar {
  position: fixed !important;
  left: var(--sidebar-w, 260px) !important;
  top: 0 !important; bottom: 0 !important;
  width: 240px !important;
  padding: 96px 14px 20px !important;
  background: #0b0906 !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  display: block !important;
  overflow-y: auto;
  z-index: 45;
}
.studio-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.studio-sidebar__btn {
  display: flex !important; align-items: center; gap: 11px;
  width: 100%; padding: 11px 12px; border-radius: 10px;
  background: transparent; border: 0; color: #cfc8bb;
  font-size: 13px; font-weight: 500; text-align: left; cursor: pointer;
}
.studio-sidebar__btn:hover { background: rgba(232,196,118,0.08); color: #f0d9a8; }
.studio-sidebar__btn.active {
  background: linear-gradient(135deg, #f2d18b, #d9ab52);
  color: #1a1408; font-weight: 700;
}
.studio-sidebar__ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; }
main.content, .tools-area {
  margin-left: calc(var(--sidebar-w, 260px) + 240px) !important;
  padding: 24px 28px !important;
  max-width: none !important;
  width: auto !important;
}
@media (max-width: 1100px) {
  .studio-sidebar { display: none !important; }
  main.content, .tools-area { margin-left: var(--sidebar-w, 260px) !important; }
}

/* ====== FIX v5: сайдбар строго список, никаких карточек ====== */
.studio-sidebar__nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex-wrap: nowrap !important;
}
.studio-sidebar__btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.studio-sidebar__ic {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}

/* ====== ABSOLUTE FIX v6: сайдбар = вертикальный список ====== */
.studio-sidebar {
  display: block !important;
  position: fixed !important;
  left: var(--sidebar-w, 260px) !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 240px !important;
  padding: 96px 14px 20px !important;
  background: #0b0906 !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  overflow-y: auto !important;
  z-index: 45 !important;
}
.studio-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  color: #9a917f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 0 12px;
}
.studio-sidebar__nav {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.studio-sidebar__btn {
  display: block !important;
  width: 100% !important;
  padding: 11px 12px !important;
  margin-bottom: 3px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 0 !important;
  color: #cfc8bb !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.studio-sidebar__btn:hover {
  background: rgba(232,196,118,0.08) !important;
  color: #f0d9a8 !important;
}
.studio-sidebar__btn.active {
  background: linear-gradient(135deg, #f2d18b, #d9ab52) !important;
  color: #1a1408 !important;
  font-weight: 700 !important;
}
.studio-sidebar__ic {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}
.studio-sidebar__btn span {
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ====== SIDEBAR ALIGN v48: студийный сайдбар вровень с меню ====== */
.studio-sidebar {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: var(--sidebar-w, 260px) !important;
  width: 232px !important;
  min-height: 0 !important;
  overflow-y: auto;
  background: var(--bg-1, #0c0a07) !important;
  border-right: 1px solid var(--border) !important;
  padding: 96px 12px 24px !important;
  z-index: 40;
}
main.content, .tools-area {
  margin-left: calc(var(--sidebar-w, 260px) + 232px) !important;
}
@media (max-width: 1000px) {
  .studio-sidebar { display: none !important; }
  main.content, .tools-area { margin-left: var(--sidebar-w, 260px) !important; }
}

/* ====== MOBILE TOOLS STRIP v52 ====== */
@media (max-width: 1000px) {
  .studio-sidebar {
    display: flex !important;
    position: static !important;
    width: 100% !important;
    min-height: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background: rgba(11,9,6,0.96) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    animation: none !important;
  }
  .studio-sidebar__title, .studio-sidebar__label,
  .studio-sidebar h3, .studio-sidebar h4 { display: none !important; }
  .studio-sidebar__nav, .studio-sidebar nav, .studio-sidebar > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 0 !important;
  }
  .studio-sidebar button {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-1) !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
    animation: none !important;
  }
  .studio-sidebar button svg { width: 16px !important; height: 16px !important; flex: none; }
  .studio-sidebar button.active {
    background: rgba(232,196,118,0.16) !important;
    color: #f2d18b !important;
    border-color: rgba(232,196,118,0.45) !important;
  }
  main.content, .tools-area { margin-left: 0 !important; }
}
@media (max-width: 768px) {
  main.content, .tools-area { padding-bottom: 140px !important; }
}

/* ====== MOBILE TOOLS STRIP v53 (перебивает любые старые правила) ====== */
@media (max-width: 1000px) {
  .studio-sidebar .studio-sidebar__title,
  .studio-sidebar .studio-sidebar__label {
    display: none !important;
  }
  .studio-sidebar.studio-sidebar {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    background: rgba(11,9,6,0.96) !important;
    animation: none !important;
  }
  .studio-sidebar .studio-sidebar__nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
  }
  .studio-sidebar .studio-sidebar__btn,
  .studio-sidebar .studio-sidebar__btn.active {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
    animation: none !important;
    box-shadow: none !important;
  }
  .studio-sidebar .studio-sidebar__btn .studio-sidebar__ic {
    width: 16px !important;
    height: 16px !important;
    flex: none !important;
  }
  .studio-sidebar .studio-sidebar__btn span {
    display: inline !important;
    font-size: 12.5px !important;
  }
}
