/* Минималистичная доводка справочников (студии, репточки, вокал, битмейкеры) — upsound-design v2.1 (Air-First) */

/* 1. Воздух в шапке и фильтре вместо наслоения горизонтальных линий */
.dir-list[data-dir] .dir-tools {
  margin-inline: 0;
  padding-inline: 0;
  background: var(--wall, #0B0A09);
  border-top: 0;
  border-bottom: 0;
}
.dir-list[data-dir] .dir-tools__in {
  padding-block: 8px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  row-gap: 16px;
  align-items: end;
}
.dir-list[data-dir] .dir-q {
  max-width: 520px;
}
.dir-list[data-dir] .dir-q input {
  height: 44px;
  font-size: 16.5px;
  border-bottom-color: rgba(239, 232, 220, .14);
}
.dir-list[data-dir] .dir-count {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin: 0;
}
.dir-list[data-dir] .dir-cats {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 6px 22px;
}
.dir-list[data-dir] .dir-cats--f {
  padding-top: 2px;
  gap: 6px 20px;
}
.dir-list[data-dir] .dir-cats--f .dir-cat {
  font-size: 13.5px;
  color: var(--mute, #8E867A);
}
.dir-list[data-dir] .dir-cats--f .dir-cat[aria-pressed="true"],
.dir-list[data-dir] .dir-cats--f .dir-cat:hover {
  color: var(--ivory, #EFE8DC);
}
.dir-list[data-dir] .svc-cols {
  margin-top: 32px;
  border-top: 1px solid rgba(239, 232, 220, .08);
  border-bottom: 0;
  padding-top: 18px;
}

/* 2. Скрываемый калькулятор одной строкой */
.de-bar {
  margin: 4px 0 0;
}
.de-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.de-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 232, 220, .14);
  background: transparent;
  color: var(--ivory-2, #C9C0B2);
  font: 400 13px/1 var(--f-text, "Onest", sans-serif);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}
.de-toggle:hover {
  border-color: rgba(239, 232, 220, .32);
  color: var(--ivory, #EFE8DC);
  background: rgba(239, 232, 220, .04);
}
.de-toggle:active {
  transform: scale(.97);
}
.de-toggle[aria-expanded="true"] {
  background: rgba(239, 232, 220, .08);
  border-color: rgba(239, 232, 220, .3);
  color: var(--ivory, #EFE8DC);
}

.de-calc {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(239, 232, 220, .025);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(240px, 340px);
  justify-content: space-between;
  gap: 16px 32px;
  align-items: center;
  transition: opacity .22s ease, transform .24s cubic-bezier(.16, 1, .3, 1);
}
.de-calc[hidden] {
  display: none;
}

.de-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(239, 232, 220, .04);
}
.de-preset {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ivory-2, #C9C0B2);
  font: 400 13px/1 var(--f-text, "Onest", sans-serif);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .16s ease;
}
.de-preset:hover {
  color: var(--ivory, #EFE8DC);
}
.de-preset:active {
  transform: scale(.97);
}
.de-preset.is-on {
  background: var(--ivory, #EFE8DC);
  color: var(--ink, #0B0A09);
  font-weight: 500;
}

.de-slider {
  display: grid;
  gap: 8px;
}
.de-slider__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.de-slider__top .eyebrow {
  margin: 0;
}
.de-slider__val {
  font: 300 20px/1 var(--f-display, "Unbounded", sans-serif);
  font-variant-numeric: tabular-nums;
  color: var(--ivory, #EFE8DC);
}
.de-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #EFE8DC 0%, #EFE8DC var(--p, 25%), rgba(239, 232, 220, .16) var(--p, 25%), rgba(239, 232, 220, .16) 100%);
  outline: none;
  cursor: pointer;
}
.de-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EFE8DC;
  border: 2px solid #0B0A09;
  box-shadow: 0 0 0 1px rgba(239, 232, 220, .55);
}

/* 3. Компактная оценка внутри строки — только 1 тихая строка при открытом калькуляторе */
.de-est:empty {
  display: none;
}
.de-est {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font: 400 12px/1.3 var(--f-mono, "IBM Plex Mono", monospace);
  font-variant-numeric: tabular-nums;
  color: var(--ivory-2, #C9C0B2);
}
.de-est__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7FD69B;
  flex-shrink: 0;
}
.de-est__dot.is-over {
  background: #F2B84B;
}
.de-est__sum {
  padding: 1px 4px;
  margin: -1px -4px;
  border-radius: 4px;
}
.de-est__sum.is-changed {
  animation: de-mark 1.4s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes de-mark {
  0%, 28% { background-color: rgba(227, 6, 19, .14); }
  100% { background-color: transparent; }
}

/* Тихая кнопка «+ Сравнить» без рамки в покое */
.de-cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mute, #8E867A);
  font: 400 12px/1 var(--f-text, "Onest", sans-serif);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, padding .18s ease;
}
.de-cmp-btn:hover {
  color: var(--ivory, #EFE8DC);
}
.de-cmp-btn.is-picked {
  padding: 0 12px;
  background: #EFE8DC;
  color: #0B0A09;
  border-color: #EFE8DC;
  font-weight: 500;
}

/* 4. Нижний указатель городов и срезов без коробки и лишних рамок */
.ds-nav.ds-nav--clean {
  margin: 56px auto 12px;
  padding: 40px 0 12px;
  border: 0;
  border-top: 1px solid rgba(239, 232, 220, .08);
  border-radius: 0;
  background: transparent;
}
.ds-nav--clean .ds-nav__head {
  margin-bottom: 18px;
}
.ds-nav--clean .ds-pills {
  gap: 10px 24px;
}
.ds-nav--clean .ds-pills a {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ivory-2, #C9C0B2);
  font-size: 14px;
}
.ds-nav--clean .ds-pills a:hover {
  background: transparent;
  color: var(--ivory, #EFE8DC);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ds-nav--clean .ds-pills a[aria-current="page"] {
  background: transparent;
  color: var(--ivory, #EFE8DC);
  text-decoration: underline;
  text-decoration-color: var(--red, #E30613);
  text-underline-offset: 5px;
}
.ds-nav--clean .ds-pills sup {
  font-size: 10.5px;
}

/* 5. Всплывающий лоток и модалка сравнения */
.de-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(130%);
  z-index: 90;
  background: #191714;
  border: 1px solid rgba(239, 232, 220, .2);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .78);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
  max-width: calc(100vw - 24px);
}
.de-dock.is-on { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.de-dock__txt { font: 400 13px/1.2 var(--f-text, "Onest", sans-serif); color: #EFE8DC; white-space: nowrap; }
.de-dock__go {
  min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0;
  background: #EFE8DC; color: #0B0A09; font: 500 13px/1 var(--f-text, "Onest", sans-serif); cursor: pointer;
}
.de-dock__clr {
  min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(239, 232, 220, .18);
  background: transparent; color: #C9C0B2; font: 400 12.5px/1 var(--f-text, "Onest", sans-serif); cursor: pointer;
}

.de-modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 5, 5, .82); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.de-modal-bg.is-open { display: flex; }
.de-modal {
  width: 100%; max-width: 1040px; max-height: 88vh; overflow: auto;
  background: #121010; border: 1px solid rgba(239, 232, 220, .18); border-radius: 20px; padding: clamp(18px, 3vw, 32px);
}
.de-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.de-modal__t { margin: 0; font: 300 22px/1.2 var(--f-display, "Unbounded", sans-serif); color: #EFE8DC; letter-spacing: -.03em; }
.de-modal__x {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239, 232, 220, .2);
  background: transparent; color: #EFE8DC; font: 400 13px/1 var(--f-text, "Onest", sans-serif); cursor: pointer;
}
.de-table-wrap { overflow-x: auto; }
.de-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.de-table th, .de-table td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border-top: 1px solid rgba(239, 232, 220, .08);
  font: 400 14px/1.5 var(--f-text, "Onest", sans-serif); color: #C9C0B2;
}
.de-table th {
  font: 400 11px/1.3 var(--f-mono, "IBM Plex Mono", monospace);
  letter-spacing: .08em; text-transform: uppercase; color: #8E867A; width: 165px;
}
.de-table thead th {
  border-top: 0; font: 500 15.5px/1.3 var(--f-text, "Onest", sans-serif);
  text-transform: none; letter-spacing: 0; color: #EFE8DC;
}
.de-table a { color: #EFE8DC; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .dir-list[data-dir] .dir-tools__in {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .dir-list[data-dir] .dir-count {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .de-calc {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .de-presets {
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .de-est__sum.is-changed { animation: none !important; }
  .de-dock, .de-preset, .de-cmp-btn, .de-toggle, .de-calc { transition: none !important; }
}
