/* Лента людей. Метрики сняты с design/bff-ios-jan-2026/04-discover/card--040.png (393pt). */

/* Glass pill вне скролла: всегда на месте, карточки не уходят под него */
body[data-route='people'] #header {
  flex: 0 0 auto;
  z-index: 22;
  padding: 0 var(--yaqin-gutter);
  margin: 0 0 8px;
  background: transparent;
}
body[data-route='people'] .app-header.discover-header {
  height: auto;
  min-height: 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
  border: 0 !important;
}
.discover-header .brand {
  font-size: 26px;
  line-height: 1;
  color: var(--yaqin-text);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}
.discover-header .city {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--yaqin-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  min-width: 0;
}
.discover-header .city i {
  font-size: 17px;
  stroke-width: 2.4;
}
.discover-header .filters {
  border: 0;
  background: none;
  color: var(--yaqin-text);
  width: 40px;
  height: 40px;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}

body[data-route='people'] .view {
  padding: 0 var(--yaqin-gutter) !important;
  overflow: hidden !important;
  position: relative;
  flex: 1;
  min-height: 0;
}

.swipe-stage {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.swipe-stage::-webkit-scrollbar {
  display: none;
}

.profile-card-slot {
  position: relative;
  /* Чуть короче экрана — снизу торчит верх следующей карточки */
  height: calc(100% - 28px);
  min-height: calc(100% - 28px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 0 0 8px;
}
.profile-card-slot.discover-end-slot {
  height: 100%;
  min-height: 100%;
  padding-bottom: 0;
}

.next-edge {
  display: none;
}

.profile-card {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  z-index: 2;
  background: var(--yaqin-sep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.profile-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrim-top,
.scrim-bottom {
  position: absolute;
  left: 0;
  right: 0;
}
.scrim-top {
  top: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
}
.scrim-bottom {
  bottom: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(24, 17, 13, 0.72));
}

.card-top {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 17px;
  right: 17px;
  color: #fff;
}
.card-top h2 {
  margin: 0;
  font-size: 37px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.card-top p {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
}

.say-hi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 21px;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  font-size: 17px;
  font-weight: 600;
}
.say-hi i {
  font-size: 20px;
}

.card-bottom {
  position: absolute;
  z-index: 3;
  left: 17px;
  right: 17px;
  bottom: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
}
.card-bottom-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-bio {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  overflow: hidden;
  width: 100%;
}
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 33px;
  padding: 0 15px;
  border-radius: 17px;
  background: var(--yaqin-text);
  color: var(--yaqin-ink-inverse);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.profile-card .decision.like {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  align-self: center;
  right: auto;
  bottom: auto;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  display: grid;
  place-items: center;
  box-shadow: none;
}
.profile-card .decision.like i {
  font-size: 38px;
  stroke-width: 1.6;
}

/* Loading skeleton — loading--067 */
.skeleton-card {
  background: var(--yaqin-bg-subtle);
  cursor: default;
}
.skeleton-top {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 20px;
  display: grid;
  gap: 10px;
}
.skeleton-bottom {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skeleton-bottom-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.skeleton-wave {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yaqin-sep);
}
.sk {
  display: block;
  border-radius: 999px;
  background: var(--yaqin-sep);
}
.sk-name { width: 148px; height: 28px; }
.sk-meta { width: 110px; height: 16px; }
.sk-line { width: 72%; height: 14px; }
.sk-line.short { width: 48%; }
.skeleton-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sk-chip { width: 64px; height: 28px; }
.sk-chip.mid { width: 78px; }
.sk-chip.wide { width: 96px; }
.skeleton-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  border: 3px solid var(--yaqin-sep);
  border-top-color: var(--yaqin-text-tertiary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state — empty-state--041 */
.discover-empty {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px 4px 28px;
}
.discover-empty.inline {
  padding: 8px 0 20px;
  height: 100%;
}
.discover-empty.inline .empty-card {
  background: var(--yaqin-surface-raised);
  border: 1px solid var(--yaqin-sep-soft);
  box-shadow: none;
  color: var(--yaqin-text);
}
.discover-empty.inline .empty-card p {
  color: var(--yaqin-text-secondary);
  font-weight: 500;
}
.empty-card {
  width: 100%;
  height: 100%;
  max-height: 640px;
  border-radius: 28px;
  background: var(--yaqin-bg);
  box-shadow: 0 0 0 1px var(--yaqin-bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 28px;
}
.empty-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  display: grid;
  place-items: center;
  font-size: var(--yaqin-fs-title);
  margin-bottom: 22px;
}
.empty-card h2 {
  margin: 0;
  font-size: var(--yaqin-fs-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.empty-card p {
  margin: 14px 0 28px;
  max-width: 280px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yaqin-text);
}
.empty-primary,
.empty-outline {
  width: min(100%, 280px);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 20px;
}
.empty-primary {
  border: 0;
  background: var(--yaqin-text);
  color: var(--yaqin-ink-inverse);
}
.empty-outline {
  margin-top: 12px;
  border: 1.5px solid var(--yaqin-text);
  background: var(--yaqin-bg);
  color: var(--yaqin-text);
}

/* Filters */
body[data-route='filters'] .nav {
  display: none;
}
body[data-route='filters'] .view {
  padding: 0 !important;
  padding-bottom: 0 !important;
  background: var(--yaqin-bg);
  overflow-y: auto;
}

.filters-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px var(--yaqin-gutter) calc(100px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.filters-page .filters-head {
  justify-content: flex-start !important;
  background: var(--yaqin-bg) !important;
}
.filters-page .filters-head h1 {
  flex: 1 1 auto !important;
  max-width: none !important;
  text-align: left !important;
  font-size: var(--yaqin-fs-title-sm) !important;
  font-weight: 700 !important;
}

.filter-block {
  margin-top: 12px;
  padding: 16px;
  border-radius: 28px;
  background: var(--yaqin-surface-raised);
  box-shadow: 0 0 0 1px var(--yaqin-bg-subtle);
  box-sizing: border-box;
}
.filter-block:first-of-type {
  margin-top: 8px;
}
.filter-block h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.filter-value {
  margin: 6px 0 14px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--yaqin-text-secondary);
}
.filter-value b {
  font-weight: 600;
  color: var(--yaqin-text);
}

.dual-range,
.range-slider {
  position: relative;
  height: 36px;
  margin: 0 2px;
}
.range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: var(--yaqin-sep);
  pointer-events: none;
}
.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--yaqin-text);
}

.dual-range input[type='range'],
.range-slider input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  outline: none;
}
.dual-range input[type='range'] {
  pointer-events: none;
}
.dual-range input[type='range']::-webkit-slider-thumb,
.range-slider input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yaqin-text);
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
  /* центрируем кружок на треке 4px */
  margin-top: -11px;
}
.dual-range input[type='range']::-moz-range-thumb,
.range-slider input[type='range']::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yaqin-text);
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  cursor: pointer;
}
.dual-range input[type='range']::-webkit-slider-runnable-track,
.range-slider input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.dual-range input[type='range']::-moz-range-track,
.range-slider input[type='range']::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.dual-range input#ageMax {
  z-index: 3;
}

.filter-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.filter-block:has(.filter-interests) .filter-value {
  margin-bottom: 10px;
}

.filters-page .filters-save {
  position: fixed;
  left: var(--yaqin-gutter);
  right: var(--yaqin-gutter);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  margin: 0;
  align-self: auto;
  min-width: 0;
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  font-size: var(--yaqin-fs-body);
  font-weight: 700;
  padding: 16px 20px;
}

.filter-chip {
  border: 1px solid color-mix(in srgb, var(--yaqin-text) 28%, transparent);
  background: transparent;
  color: var(--yaqin-text);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.filter-chip.on {
  background: var(--yaqin-text);
  color: var(--yaqin-ink-inverse);
  border-color: var(--yaqin-text);
}

body[data-route='city'] .nav {
  display: none;
}
body[data-route='city'] .view {
  padding: 0 !important;
  background: var(--yaqin-bg);
}
.city-lead {
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--yaqin-text-secondary);
}
.city-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--yaqin-text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  padding: 16px 14px;
}
.city-row.on {
  background: color-mix(in srgb, var(--yaqin-text) 8%, transparent);
}
.city-row i {
  font-size: 20px;
  color: var(--yaqin-yellow);
}
