/* Анкета целиком. Метрики с design/bff-ios-jan-2026/05-profile-view/*.png (393pt). */
/* Боковой inset здесь как в макете (~20px), не глобальный --yaqin-gutter. */
body[data-route='person'],
body[data-route='event'],
body[data-route='group'],
body[data-route='ticket'],
body[data-route='event-invite'] {
  --person-gutter: 20px;
}

body.sheet-view .app {
  padding-top: 0;
}
body.sheet-view .app-header {
  display: none;
}
body.sheet-view .view {
  padding: 0 !important;
  background: var(--yaqin-bg);
}

.person-view {
  padding-bottom: 48px;
}

.person-hero {
  position: relative;
  height: 528px;
  background: var(--yaqin-sep);
  touch-action: pan-y;
}
.person-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-icon {
  position: absolute;
  top: max(12px, calc(var(--yaqin-safe-top, 0px) + 4px));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  color: var(--yaqin-ink-inverse);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.hero-icon.back {
  left: var(--person-gutter, 20px);
}
.hero-icon.more {
  right: var(--person-gutter, 20px);
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 79px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.hero-dots span.on {
  background: var(--yaqin-bg);
}

.person-head {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 20px var(--person-gutter, 20px) 28px;
  border-radius: 28px 28px 0 0;
  background: var(--yaqin-bg);
}
.person-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.person-head-row:has(.hero-wave) {
  min-height: 72px;
}
.person-head-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.person-head-row:has(.hero-wave) .person-head-copy {
  max-height: none;
}
.person-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.person-title-row h1 {
  margin: 0;
  max-width: none;
  font-size: var(--yaqin-fs-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--yaqin-text);
}
.person-head h1 {
  margin: 0;
  max-width: none;
  font-size: var(--yaqin-fs-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--yaqin-text);
}
.person-head-row:has(.hero-wave) .person-head-copy h1 {
  font-size: 24px;
  line-height: 1.12;
}
.name-wave-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.name-wave-chip.out {
  background: color-mix(in srgb, var(--yaqin-yellow) 28%, var(--yaqin-bg-subtle));
  color: var(--yaqin-text);
}
.person-meta {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--yaqin-text-secondary);
}
.person-wave-hint {
  display: none;
}
.person-bio {
  margin: 18px 0 0;
  max-width: none;
  font-size: 17px;
  line-height: 28px;
  color: var(--yaqin-text);
}

.hero-wave {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--yaqin-yellow);
  color: var(--yaqin-yellow-ink);
  font-size: 38px;
  display: grid;
  place-items: center;
  box-shadow: none;
  align-self: center;
}
.hero-wave.on {
  background: var(--yaqin-ink);
  color: var(--yaqin-ink-inverse);
}
.hero-wave i {
  stroke-width: 1.6;
}

.yaqin-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--yaqin-ink) 92%, transparent);
  color: var(--yaqin-ink-inverse);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.yaqin-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.block-banner {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--yaqin-ink) 92%, transparent);
  color: var(--yaqin-ink-inverse);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.person-section {
  display: none;
}

.person-card {
  margin: 0 var(--person-gutter, 20px) 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;
}
.person-card-title,
.person-card > .person-section {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--yaqin-text);
}

.chip-group + .chip-group {
  margin-top: 24px;
}
.chip-group h4,
.info-row h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--yaqin-text-secondary);
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.person-view .chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  background: var(--yaqin-bg);
  color: var(--yaqin-text);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.group-rail {
  display: flex;
  gap: 10px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.group-rail::-webkit-scrollbar {
  display: none;
}
.group-tile {
  flex: 0 0 auto;
  width: 148px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--yaqin-bg);
  text-align: center;
  color: inherit;
}
.group-tile img {
  width: 100%;
  aspect-ratio: var(--yaqin-content-ratio, 4 / 5);
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}
.group-tile span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 20px;
  color: var(--yaqin-text);
}

.info-row + .info-row {
  margin-top: 20px;
}

.person-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px var(--person-gutter, 20px) 28px;
}
.person-safety {
  border-radius: var(--yaqin-radius-pill);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 12px;
  border: 1.5px solid color-mix(in srgb, var(--yaqin-danger) 55%, transparent);
  background: var(--yaqin-bg);
  color: var(--yaqin-danger);
}
.person-skip {
  border-radius: var(--yaqin-radius-pill);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 12px;
  border: 1.5px solid var(--yaqin-text);
  background: var(--yaqin-bg);
  color: var(--yaqin-text);
}
