:root {
  --bg: #0D0D0C;
  --surface: #161614;
  --line: #262522;
  --line-2: #3A3833;
  --text: #F3EFE6;
  --text-2: #C9C4B8;
  --muted: #A39E93;
  --rec: #E5484D;
  --accent: #EBD34A;
  --radius: 20px;
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page { position: relative; z-index: 0; isolation: isolate; overflow: hidden; min-height: 100vh; }
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  top: -260px; right: -220px; width: 780px; height: 640px;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  background: radial-gradient(closest-side, rgba(235,211,74,.20), rgba(235,211,74,.07) 60%, rgba(235,211,74,0));
  filter: blur(60px); transform: rotate(-18deg);
}
.blob--2 {
  top: 180px; right: 220px; width: 420px; height: 360px; transform: none;
  border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%;
  background: radial-gradient(closest-side, rgba(240,160,46,.12), rgba(240,160,46,0));
  filter: blur(70px);
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { color: var(--bg); background: color-mix(in srgb, var(--accent) 88%, white); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { color: var(--accent); }
.btn--lg { font-size: 17px; padding: 18px 30px; }
.btn--xl { font-size: 18px; padding: 22px 36px; }

/* ---------- Шапка ---------- */
.header { border-bottom: 1px solid var(--line); }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.header__logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; }

/* ---------- Первый экран ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-top: 72px; padding-bottom: 56px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.eyebrow { font: 13px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); display: inline-block; flex-shrink: 0; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.hero h1 { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__headline { font: 700 clamp(40px, 6vw, 80px)/1.02 var(--f-display); letter-spacing: -.02em; }
.hero__headline .accent { color: var(--accent); white-space: nowrap; }
.hero__lead { margin: 0; font-size: 19px; color: var(--text-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { flex: 1 1 520px; min-width: 0; position: relative; }
.hero__media img { width: 100%; height: clamp(340px, 46vw, 600px); object-fit: cover; border-radius: var(--radius); display: block; }
.hero__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(13,13,12,.82); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 14px; font: 13px/1 var(--f-mono); display: flex; gap: 10px; align-items: center;
}
.hero__badge .rec-dot { width: 8px; height: 8px; }

/* ---------- Лента тегов ---------- */
.tags { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tags__in { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font: 13px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
.section--top { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.h2 { margin: 0; font: 700 clamp(32px, 4vw, 52px)/1.05 var(--f-display); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); max-width: 420px; }

.grid { display: grid; gap: 16px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--photos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.grid--gear { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.card__num { font: 13px/1 var(--f-mono); color: var(--accent); }
.card h3 { margin: 0; font: 500 24px/1.2 var(--f-display); }
.card p { margin: 0; color: var(--text-2); flex-grow: 1; }
.card__price { border-top: 1px solid #2E2D29; padding-top: 16px; font: 14px/1.4 var(--f-mono); }
.card--service { min-height: 340px; }
.card--gear { padding: 24px; gap: 10px; }
.card--gear .label { font: 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card--gear .name { font: 500 18px/1.25 var(--f-display); }
.card--gear .desc { font-size: 15px; color: var(--text-2); }

.photo { width: 100%; height: clamp(320px, 34vw, 460px); object-fit: cover; border-radius: var(--radius); display: block; }

/* ---------- Примеры работ ---------- */
.grid--works { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); list-style: none; margin: 0; padding: 0; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 18px; align-items: center; transition: border-color .2s ease; }
.work.is-playing { border-color: var(--accent); }
.work__play {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; border: 0; cursor: pointer;
  background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.work__play:hover { transform: scale(1.05); }
.work__play .i-pause, .work.is-playing .work__play .i-play { display: none; }
.work.is-playing .work__play .i-pause { display: block; }
.work__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.work__num { font: 12px/1.4 var(--f-mono); color: var(--accent); }
.work__title { font: 500 18px/1.3 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work__note { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work__bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.work__seek { flex: 1; min-width: 0; accent-color: var(--accent); height: 20px; margin: 0; }
.work__time { font: 12px/1 var(--f-mono); color: var(--muted); min-width: 36px; text-align: right; }
@media (max-width: 420px) { .grid--works { grid-template-columns: 1fr; } .work__play { width: 52px; height: 52px; } }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--line-2); padding-top: 24px; counter-increment: step; }
.steps li:first-child { border-top-color: var(--accent); }
.steps .num { font: 13px/1 var(--f-mono); color: var(--muted); }
.steps .num::after { content: counter(step, decimal-leading-zero); }
.steps .t { font: 500 22px/1.25 var(--f-display); }
.steps .d { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: start; }
.faq-wrap__head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.faq-wrap__head p { margin: 0; color: var(--muted); max-width: 360px; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font: 500 19px/1.3 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.faq__icon svg { transition: transform .2s ease; }
.faq[open] .faq__icon svg { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 60px 24px 0; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: var(--bg); border-radius: 28px; padding: clamp(36px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { margin: 0; font: 700 clamp(30px, 4vw, 54px)/1.05 var(--f-display); letter-spacing: -.02em; }
.cta p { margin: 0; font-size: 18px; color: #2B2A20; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; }
.footer__logo { height: 72px; width: auto; display: block; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__label { font: 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer__col a { text-decoration: none; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__copy { padding-bottom: 32px; font-size: 13px; color: var(--muted); }

/* ---------- Мобильная кнопка записи ---------- */
.fab { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .header__logo img { height: 38px; }
  .hero { padding-top: 40px; gap: 32px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .card { padding: 24px; }
  .card--service { min-height: 0; }
  .faq p { padding-right: 0; }
  .fab {
    display: flex; position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .footer { padding-bottom: 80px; }
}

/* ============ Страница артиста ============ */
.artist-hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.artist-hero h1 { margin: 0; font: 700 clamp(36px, 6vw, 76px)/1.02 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.artist-hero__sub { color: var(--muted); font-size: 18px; margin: 0; }
.artist-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.lib { display: flex; flex-direction: column; gap: 16px; padding-bottom: 160px; }
.folder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.folder__head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; min-height: 44px; font: 500 20px/1.25 var(--f-display); }
.folder > summary, .subfolder > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; min-height: 44px;
}
.folder > summary::-webkit-details-marker, .subfolder > summary::-webkit-details-marker { display: none; }
.folder > summary { font: 500 20px/1.25 var(--f-display); }
.folder > summary:hover, .subfolder > summary:hover { color: var(--accent); }
.folder__ico { color: var(--accent); flex-shrink: 0; }
.folder__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.folder__count { font: 13px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.chev { flex-shrink: 0; color: var(--muted); transition: transform .2s ease; }
details[open] > summary .chev { transform: rotate(90deg); }
.folder__body { border-top: 1px solid var(--line); }
.subfolder { border-top: 1px solid var(--line); }
.subfolder:first-child { border-top: 0; }
.subfolder > summary { font: 500 16px/1.3 var(--f-body); padding: 14px 24px; }
.subfolder .folder__body { margin-left: 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }

.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 16px; border-top: 1px solid var(--line); }
.tracks .track:first-child { border-top: 0; }
.subfolder + .tracks .track:first-child, .folder__body > .subfolder ~ .tracks .track:first-child { border-top: 1px solid var(--line); }
.track.is-current { background: rgba(235,211,74,.06); }
.track.is-current .track__title { color: var(--accent); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn--play { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.icon-btn--play:hover { color: var(--bg); background: color-mix(in srgb, var(--accent) 88%, white); }
.track__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__meta { font: 12px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Плеер */
.player {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 1232px; margin: 0 auto;
  background: rgba(22,22,20,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.player[hidden] { display: none; }
.player__btns { display: flex; gap: 8px; align-items: center; }
.player__info { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__bar { display: flex; align-items: center; gap: 10px; font: 12px/1 var(--f-mono); color: var(--muted); }
.player__bar input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 24px; }
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.notfound h1 { margin: 0; font: 700 clamp(40px, 7vw, 96px)/1 var(--f-display); }
