/* ============================================================
   SOUNDPARK — stage engineering
   Палитра построена на кодах реальных светофильтров Lee Filters.
   Меняете цвет — меняйте и подпись рядом с ним в разметке.
   ============================================================ */

:root {
  /* Затемнённый зал в дыму: не чёрный, а глубокий фиолетовый */
  --ink:        #0E0B16;
  --ink-deep:   #08060F;
  --surface:    #17122A;
  --surface-2:  #1F1937;
  --line:       #2E2748;

  --text:       #F3F0FA;
  --muted:      #9C93BC;

  /* Светофильтры */
  --gel-106:    #FF2E4C;  /* Lee 106 · Primary Red   */
  --gel-195:    #2B5CFF;  /* Lee 195 · Zenith Blue   */
  --gel-088:    #C6FF3D;  /* Lee 088 · Lime Green    */
  --gel-158:    #FF8A3D;  /* Lee 158 · Deep Orange   */

  --display: 'Unbounded', system-ui, sans-serif;
  --body:    'Onest', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* Дымка в воздухе зала */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gel-088);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Типографика ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; }

.display {
  font-size: clamp(2.5rem, 7.4vw, 6rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0;
}

.lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--muted); max-width: 62ch; }

.muted { color: var(--muted); }

/* Подпись как на световом плане */
.tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.tag::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--dot, var(--muted));
  box-shadow: 0 0 12px var(--dot, transparent);
}

.spec {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Каркас ---------- */

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 70ch; }

.section-head .tag { margin-bottom: 1.1rem; }

.section-head p { margin: 1.1rem 0 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem var(--gut);
  background: color-mix(in srgb, var(--ink-deep) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: grid; line-height: 1; margin-right: auto; }

.brand__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.brand__tag {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
}

.nav { display: flex; gap: 1.9rem; }

.nav a {
  font-size: .95rem;
  color: var(--muted);
  transition: color .18s;
  position: relative;
}

.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }

.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gel-088);
}

.burger {
  display: none;
  width: 44px; height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  margin: 4px auto;
  transition: transform .2s;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}

.btn--solid { background: var(--gel-088); color: var(--ink-deep); font-weight: 500; }
.btn--solid:hover { transform: translateY(-2px); background: #d4ff63; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); transform: translateY(-2px); }

.btn--sm { padding: .7rem 1.15rem; font-size: .72rem; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  padding-block: clamp(5rem, 13vw, 10rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Три заливки светом — как трёхцветный wash на сцене */
.washes { position: absolute; inset: -25% -10%; z-index: -1; }

.wash {
  position: absolute;
  width: 54vw;
  aspect-ratio: 1;
  min-width: 340px;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: .42;
  will-change: transform;
}

.wash--r { background: var(--gel-106); top: 4%;  left: -4%;  animation: drift-a 24s ease-in-out infinite alternate; }
.wash--b { background: var(--gel-195); top: 18%; left: 34%;  animation: drift-b 29s ease-in-out infinite alternate; }
.wash--g { background: var(--gel-088); top: 0%;  left: 62%;  opacity: .3; animation: drift-c 34s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate3d(9vw, 5vh, 0) scale(1.16); } }
@keyframes drift-b { to { transform: translate3d(-7vw, 8vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-11vw, -4vh, 0) scale(1.2); } }

.hero__plot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

.hero .display { margin-bottom: 1.8rem; max-width: 17ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.6rem; }

/* Бегущая строка фактов */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink-deep);
  overflow: hidden;
}

.ticker__row {
  display: flex;
  gap: 3.5rem;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  animation: slide 42s linear infinite;
}

.ticker__row b { color: var(--text); font-weight: 500; }

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Сетки ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ---------- Карточки ---------- */

.card {
  position: relative;
  padding: 1.9rem 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gel, var(--line));
}

.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gel, var(--line)) 45%, var(--line)); }

.card .tag { margin-bottom: 1.3rem; }

.card .h3 { margin-bottom: .7rem; }

.card p { margin: 0 0 1.3rem; color: var(--muted); font-size: .96rem; }

.card__spec {
  border-top: 1px dashed var(--line);
  padding-top: .9rem;
  display: grid;
  gap: .35rem;
}

.card__spec span { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.card__spec span b { color: var(--text); font-weight: 500; }

/* Карточка проекта */
.case {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 320px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--gel) 34%, transparent), transparent 62%),
    var(--surface);
  overflow: hidden;
  transition: transform .22s;
}

.case:hover { transform: translateY(-4px); }

.case__meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

.case .h3 { margin-bottom: .6rem; }

.case p { margin: 0; color: var(--muted); font-size: .93rem; }

.case__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
}

.case__nums b { display: block; font-size: 1.05rem; color: var(--text); font-weight: 500; }

/* ---------- Таймлайн монтажа ---------- */

.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }

.tl {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.tl__time {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--gel, var(--text));
  letter-spacing: .02em;
}

.tl__what { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }

.tl p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Список характеристик ---------- */

.speclist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.speclist li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}

.speclist li span:last-child { color: var(--text); text-align: right; }

/* ---------- Врезка ---------- */

.callout {
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 140% at 12% 0%, color-mix(in srgb, var(--gel-195) 22%, transparent), transparent 60%),
    var(--surface);
}

.callout .h2 { margin-bottom: 1rem; }

.callout p { color: var(--muted); margin: 0 0 2rem; max-width: 56ch; }

/* ---------- Форма ---------- */

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: .5rem; }

.field label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gel-088);
}

.form__note { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Подвал ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.1rem;
}

.foot-col a, .foot-col p { display: block; margin: 0 0 .6rem; font-size: .95rem; color: var(--muted); }
.foot-col a:hover { color: var(--text); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gut) 1.2rem;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page']::after { display: none; }
  .burger { display: block; order: 3; }
  .site-head > .btn { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: .45rem; padding: 1.3rem 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .speclist li { flex-direction: column; gap: .2rem; }
  .speclist li span:last-child { text-align: left; }
}

/* ---------- Уважение к настройкам движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wash, .ticker__row { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
