/* Студия Flux: главная (услуги), оформление заказа, мои заказы. Цвета — из темы главной (styles.css). */
.studio-page {
  --st-ink: #090d15;
  --st-panel: #101722;
  --st-raised: #151f2e;
  --st-line: rgba(164, 189, 222, .13);
  --st-muted: #9aa9be;
  --st-blue: #5a9bff;
  --st-cyan: #55d8ed;
  --st-green: #52d6a0;
  background: var(--st-ink);
  background-image: radial-gradient(ellipse 60% 36% at 78% 8%, rgba(34, 83, 146, .17), transparent 70%);
}
.studio-home, .st-wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 28px 40px; }
.st-wrap { max-width: 1120px; padding-top: 22px; }

/* ---------- главная: герой ---------- */
.st-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 40px; align-items: center; margin-top: 15px; padding: 50px; border: 1px solid var(--st-line); border-radius: 27px;
  background: linear-gradient(112deg, rgba(17, 26, 40, .98), rgba(15, 31, 48, .92)); }
.st-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: 18%; top: -330px;
  border: 1px solid rgba(85, 216, 237, .18); box-shadow: 0 0 0 38px rgba(85, 216, 237, .025), 0 0 0 78px rgba(85, 216, 237, .02); pointer-events: none; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #bbcee4; font-size: 12px; font-weight: 700; }
.st-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-green); box-shadow: 0 0 12px rgba(82, 214, 160, .65); }
.st-hero h1 { margin: 20px 0 14px; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.05em; font-weight: 800; }
.st-hero h1 em { color: #72c9ed; font-style: normal; }
.st-lead { max-width: 560px; color: #b3c0d1; font-size: 15px; line-height: 1.7; }
.st-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.st-tags span { padding: 6px 11px; border: 1px solid var(--st-line); border-radius: 999px; color: #c3d2e4; font-size: 12px; font-weight: 600; background: rgba(7, 12, 20, .45); }
.st-hero-card { position: relative; z-index: 1; display: grid; gap: 10px; padding: 20px; border: 1px solid rgba(129, 181, 222, .22);
  border-radius: 20px; background: linear-gradient(145deg, rgba(30, 52, 75, .93), rgba(13, 21, 33, .96) 63%); }
.st-hero-card h3 { font-size: 15px; }
.st-hero-card .st-mini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: rgba(7, 12, 20, .5); border: 1px solid var(--st-line); }
.st-mini b { display: block; font-size: 13.5px; }
.st-mini small { color: var(--st-muted); font-size: 11.5px; }
.st-mini .st-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 19px; background: rgba(90, 155, 255, .12); }
.st-mini .st-chip { margin-left: auto; }

/* ---------- секции ---------- */
.st-section { margin-top: 66px; }
.st-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 19px; }
.st-head small { color: #83a2bf; font-size: 11px; font-weight: 700; }
.st-head h2 { margin-top: 5px; font-size: clamp(23px, 2.7vw, 30px); letter-spacing: -.04em; }
.st-head p { max-width: 440px; color: var(--st-muted); font-size: 13px; line-height: 1.6; }
.st-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.st-filter { padding: 8px 14px; border: 1px solid var(--st-line); border-radius: 10px; color: #9cadc2; font-size: 13px; font-weight: 700; background: rgba(16, 23, 34, .6); }
.st-filter:hover { color: #e9f2fc; }
.st-filter.on { border-color: rgba(90, 155, 255, .35); background: rgba(90, 155, 255, .14); color: #acd1ff; }

.st-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 13px; }
.st-service { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--st-line);
  border-radius: 17px; background: var(--st-panel); transition: border-color .16s, transform .16s; }
.st-service:hover { border-color: rgba(90, 155, 255, .35); transform: translateY(-2px); }
.st-service .st-cat { color: #8ac9e6; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.st-service h3 { font-size: 17px; letter-spacing: -.02em; }
.st-service p { flex: 1; color: var(--st-muted); font-size: 13px; line-height: 1.55; }
.st-price-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--st-line); }
.st-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.st-price small { color: var(--st-muted); font-size: 12px; font-weight: 600; }
.st-days { color: var(--st-muted); font-size: 12px; }
.st-service .btn { height: 40px; }
.st-empty { padding: 26px; border: 1px dashed var(--st-line); border-radius: 15px; color: var(--st-muted); text-align: center; font-size: 14px; }

.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; counter-reset: st; }
.st-step { padding: 20px; border: 1px solid var(--st-line); border-radius: 16px; background: rgba(16, 23, 34, .7); }
.st-step::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 32px; height: 32px;
  margin-bottom: 12px; border-radius: 10px; background: rgba(90, 155, 255, .14); color: #8ebdff; font-weight: 800; }
.st-step b { display: block; margin-bottom: 6px; font-size: 15px; }
.st-step p { color: var(--st-muted); font-size: 13px; line-height: 1.55; }

/* ---------- статусы ---------- */
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: rgba(148, 163, 184, .14); color: #cbd5e1; }
.st-chip.new { background: rgba(250, 204, 21, .12); color: #fde68a; }
.st-chip.priced { background: rgba(90, 155, 255, .15); color: #a9ccff; }
.st-chip.work { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.st-chip.review { background: rgba(85, 216, 237, .14); color: #a5f0f8; }
.st-chip.done { background: rgba(82, 214, 160, .14); color: #86efc0; }
.st-chip.cancel { background: rgba(248, 113, 113, .12); color: #fca5a5; }

/* ---------- формы и карточки ---------- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.st-card { min-width: 0; padding: 22px; border: 1px solid var(--st-line); border-radius: 18px; background: var(--st-panel); }
.st-card h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.st-card h2 { font-size: 18px; letter-spacing: -.02em; }
.st-card > p.st-sub { margin-top: 6px; color: var(--st-muted); font-size: 14px; line-height: 1.6; }
.st-form { display: grid; gap: 16px; margin-top: 20px; }
.st-field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #d4dceb; }
.st-field small { color: var(--st-muted); font-weight: 500; font-size: 12px; }
.st-field input, .st-field select, .st-field textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(168, 194, 227, .18);
  border-radius: 12px; background: rgba(7, 12, 20, .7); color: #eef0f7; font: inherit; font-size: 14px; font-weight: 500; }
.st-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: none; border-color: rgba(85, 216, 237, .6); box-shadow: 0 0 0 3px rgba(85, 216, 237, .1); }
.st-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-err { padding: 12px 14px; border-radius: 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); color: #fca5a5; font-size: 13.5px; }
.st-ok { padding: 12px 14px; border-radius: 12px; background: rgba(82, 214, 160, .1); border: 1px solid rgba(82, 214, 160, .3); color: #86efc0; font-size: 13.5px; }
.st-kv { display: grid; gap: 10px; margin-top: 14px; }
.st-kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.st-kv span { color: var(--st-muted); }
.st-kv b { text-align: right; }
.st-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.st-note { color: var(--st-muted); font-size: 12.5px; line-height: 1.6; }
.st-svc-pick { display: grid; gap: 8px; max-height: 330px; overflow: auto; padding-right: 2px; }
.st-svc-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 12px; cursor: pointer;
  background: rgba(7, 12, 20, .45); text-align: left; }
.st-svc-opt:hover { border-color: rgba(90, 155, 255, .35); }
.st-svc-opt.on { border-color: rgba(85, 216, 237, .6); background: rgba(85, 216, 237, .08); }
.st-svc-opt b { display: block; font-size: 13.5px; }
.st-svc-opt small { color: var(--st-muted); font-size: 12px; }
.st-svc-opt em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; }

/* ---------- мои заказы ---------- */
.st-list { display: grid; gap: 10px; margin-top: 18px; }
.st-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--st-line); border-radius: 15px; background: var(--st-panel); cursor: pointer; transition: border-color .16s; }
.st-order:hover { border-color: rgba(90, 155, 255, .35); }
.st-order b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-order small { color: var(--st-muted); font-size: 12px; }
.st-order .st-right { display: grid; justify-items: end; gap: 6px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f472b6; box-shadow: 0 0 10px rgba(244, 114, 182, .7); }
.st-timeline { display: flex; gap: 6px; margin-top: 16px; }
.st-timeline div { flex: 1; display: grid; gap: 6px; font-size: 11.5px; color: var(--st-muted); }
.st-timeline div::before { content: ""; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .18); }
.st-timeline div.on { color: #d4dceb; }
.st-timeline div.on::before { background: var(--grad); }
.st-details { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(7, 12, 20, .5); border: 1px solid var(--st-line);
  color: #c9d3e2; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.st-chat { display: grid; gap: 10px; max-height: 460px; overflow: auto; margin-top: 14px; padding: 4px; }
.st-msg { max-width: 82%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  background: var(--st-raised); border: 1px solid var(--st-line); }
.st-msg small { display: block; margin-bottom: 3px; color: var(--st-muted); font-size: 11px; font-weight: 700; }
.st-msg.me { justify-self: end; background: rgba(90, 155, 255, .14); border-color: rgba(90, 155, 255, .3); }
.st-msg.staff small { color: #8ebdff; }
.st-msg.system { justify-self: center; max-width: 92%; background: transparent; border-style: dashed; color: var(--st-muted); font-size: 12.5px; text-align: center; }
.st-send { display: flex; gap: 8px; margin-top: 12px; }
.st-send textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; padding: 12px 14px; border: 1px solid rgba(168, 194, 227, .18); border-radius: 12px;
  background: rgba(7, 12, 20, .7); color: #eef0f7; font: inherit; font-size: 14px; resize: vertical; }
.st-actions { display: grid; gap: 8px; margin-top: 14px; }
.st-back { display: inline-flex; gap: 6px; margin-bottom: 12px; color: #8ebdff; font-size: 13px; font-weight: 700; }

@media (max-width: 960px) {
  .st-hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-side { position: static; }
  .st-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .studio-home, .st-wrap { padding: 0 14px 30px; }
  .st-hero { padding: 26px 18px; border-radius: 20px; }
  .st-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .st-steps { grid-template-columns: 1fr; }
  .st-row2 { grid-template-columns: 1fr; }
  .st-order { grid-template-columns: minmax(0, 1fr); }
  .st-order .st-right { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .st-msg { max-width: 94%; }
  .st-send { flex-direction: column; }
}

/* главная: текст крупнее, карточки ровнее */
.st-lead { font-size: 16px; }
.st-step b { font-size: 16px; }
.st-step p { font-size: 14px; }
.st-step { transition: border-color .15s ease, transform .15s ease; }
.st-step:hover { border-color: rgba(139, 92, 246, .45); transform: translateY(-2px); }
@media (max-width: 640px) { .st-hero h1 br { display: none; } }
