/* =========================================================
   «Дейтинг-паспорт» + плашка тестирования
   ========================================================= */

.ia-testing-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto 0;
    padding: 9px 14px;
    width: min(100%, 1120px);
    border: 1px solid #FAD6A5;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFF7EA 0%, #FFF1F6 100%);
    color: #6B4A2B;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(180, 120, 40, 0.08);
}
.ia-testing-banner-ico { flex: 0 0 auto; font-size: 17px; }
.ia-testing-banner-text { min-width: 0; }

/* ---------- Hero паспорта ---------- */
.ia-passport-hero {
    position: relative;
    overflow: hidden;
    padding: 16px 16px 14px;
    margin-bottom: 12px;
    border: 1px solid #F7C0D6;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFF0F6 0%, #FFE8DC 55%, #FFF9F4 100%);
    box-shadow: 0 10px 26px rgba(245, 26, 126, 0.08);
}
.ia-passport-hero::after {
    content: ""; position: absolute; right: -40px; top: -50px;
    width: 170px; height: 170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,26,126,.16), rgba(245,26,126,0) 70%);
    pointer-events: none;
}
.ia-passport-top { display: flex; align-items: flex-start; gap: 12px; }
.ia-passport-icon { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.ia-passport-copy { min-width: 0; flex: 1 1 auto; }
.ia-passport-kicker {
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #9F1239;
}
.ia-passport-archetype {
    margin-top: 2px; font-size: 19px; line-height: 1.2; font-weight: 900; color: #831843;
}
.ia-passport-rank { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #6B4A5B; }
.ia-passport-progress {
    height: 8px; margin-top: 10px; border-radius: 999px;
    background: rgba(255,255,255,.7); overflow: hidden;
}
.ia-passport-progress i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #F51A7E, #FF7AB3);
    transition: width .5s ease;
}
.ia-passport-next { margin-top: 4px; font-size: 11px; color: #7C5A68; }
.ia-passport-kpis {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px; margin-top: 12px;
}
.ia-passport-kpi {
    padding: 8px 9px; border-radius: 12px;
    background: rgba(255,255,255,.78); border: 1px solid rgba(245,26,126,.12);
}
.ia-passport-kpi b { display: block; font-size: 17px; line-height: 1.15; color: #831843; }
.ia-passport-kpi span { display: block; margin-top: 2px; font-size: 10.5px; color: #6B7280; }
.ia-passport-share {
    margin-top: 10px; appearance: none; cursor: pointer;
    border: 1px solid #F3C6D9; border-radius: 999px; background: #FFFFFF;
    color: #9F1239; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 800;
}
.ia-passport-share:hover { background: #FFF5FA; }

/* ---------- ДНК ---------- */
.ia-passport-card { margin-top: 12px; }
.ia-dna { position: relative; }
.ia-dna-axis { margin-bottom: 12px; }
.ia-dna-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; font-size: 11.5px; font-weight: 700; color: #4B5563;
}
.ia-dna-head span { min-width: 0; overflow-wrap: anywhere; }
.ia-dna-head span:last-child { text-align: right; }
.ia-dna-bar {
    display: flex; height: 10px; margin-top: 6px;
    border-radius: 999px; overflow: hidden; background: #F1F3F7;
}
.ia-dna-bar i { display: block; height: 100%; }
.ia-dna-bar i.left { background: linear-gradient(90deg, #F51A7E, #FF8FBE); }
.ia-dna-bar i.right { background: #DDE1EA; }
.ia-dna-pcts {
    display: flex; justify-content: space-between;
    margin-top: 3px; font-size: 10.5px; color: #848A9E;
}
.ia-dna-locked {
    position: absolute; inset: -4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 14px; text-align: center;
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ia-dna-locked.is-unlocked { display: none; }
.ia-dna-locked p { margin: 0; max-width: 320px; font-size: 12.5px; line-height: 1.45; color: #4B5563; }
.ia-dna.is-locked .ia-dna-axis { filter: blur(5px); user-select: none; pointer-events: none; }
.ia-dna-locked a { text-decoration: none; }

/* ---------- Инсайты/коуч ---------- */
.ia-passport-insight {
    margin-top: 10px; padding: 11px 12px;
    border: 1px dashed #D9CDE8; border-radius: 12px;
    background: linear-gradient(135deg, #FBF7FF 0%, #FFF7FB 100%);
    font-size: 12.5px; line-height: 1.5; color: #4B5563;
}
.ia-passport-insight b { color: #6B21A8; }
.ia-coach {
    margin-top: 10px; padding: 11px 12px;
    border: 1px solid #E9D5FF; border-radius: 14px;
    background: linear-gradient(135deg, #FAF5FF 0%, #FFF5FA 100%);
}
.ia-coach h3 { margin: 0 0 6px; font-size: 12.5px; color: #7E22CE; }
.ia-coach p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #374151; }
.ia-coach-skeleton {
    height: 12px; margin: 6px 0; border-radius: 999px;
    background: linear-gradient(90deg, #F1E8FA 25%, #FAF5FF 50%, #F1E8FA 75%);
    background-size: 200% 100%; animation: iaCoachPulse 1.4s infinite;
}
.ia-coach-skeleton.short { width: 62%; }
@keyframes iaCoachPulse { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Ачивки ---------- */
.ia-achievements-scroll {
    display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ia-ach {
    flex: 0 0 auto; width: 128px; scroll-snap-align: start;
    padding: 10px 10px 11px; border-radius: 14px;
    border: 1px solid #F0DDE8; background: #FFFFFF;
}
.ia-ach.is-unlocked {
    border-color: #F7A8C9;
    background: linear-gradient(145deg, #FFF1F7 0%, #FFFFFF 100%);
    box-shadow: 0 6px 18px rgba(245,26,126,.10);
}
.ia-ach.is-locked { opacity: .62; }
.ia-ach-ico { font-size: 22px; line-height: 1; }
.ia-ach-title { margin-top: 5px; font-size: 11.5px; font-weight: 800; color: #4B5563; }
.ia-ach.is-unlocked .ia-ach-title { color: #9F1239; }
.ia-ach-desc { margin-top: 3px; font-size: 10px; line-height: 1.35; color: #848A9E; }
.ia-ach-progress { margin-top: 7px; height: 5px; border-radius: 999px; background: #F1F3F7; overflow: hidden; }
.ia-ach-progress i { display: block; height: 100%; border-radius: 999px; background: #F51A7E; }
.ia-ach-count { margin-top: 4px; font-size: 9.5px; color: #9AA3B2; }

/* ---------- Мобильные ---------- */
@media (max-width: 420px) {
    .ia-testing-banner { margin: 8px 10px 0; padding: 8px 10px; font-size: 11.5px; border-radius: 12px; }
    .ia-passport-hero { padding: 14px 13px 12px; border-radius: 16px; }
    .ia-passport-icon { font-size: 28px; }
    .ia-passport-archetype { font-size: 17px; }
    .ia-passport-kpis { gap: 6px; }
    .ia-passport-kpi { padding: 7px 8px; }
    .ia-passport-kpi b { font-size: 15px; }
    .ia-passport-kpi span { font-size: 9.5px; }
    .ia-ach { width: 112px; padding: 9px; }
}

