.an-tests {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 48px;
}

.an-tests__card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    padding: 14px 14px 0;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(52, 72, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.an-tests__media {
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
}

.an-tests__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(52, 72, 72, 0.12);
}

.an-tests__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

/* Кадрирование под карточку: лицо не в центре, маяк и свет — в фокусе */
.an-tests__img--resurs {
    object-position: center 45%;
}

.an-tests__img--gde {
    object-position: 38% center;
}

.an-tests__img--sebya {
    object-position: center 22%;
}

.an-tests__eyebrow {
    display: block;
    padding: 16px 4px 6px;
    color: #c9a24a;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.an-tests__title {
    display: block;
    padding: 0 4px 20px;
    color: #344848;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

@media (max-width: 800px) {
    .an-tests {
        grid-template-columns: 1fr;
    }
}

.test-page .psych-test {
    scroll-margin-top: 96px;
}

.page-test-quiz .entry-content {
    max-width: 760px;
    margin: 0 auto;
}

.page-test-quiz .entry-content > .an-qz:first-child {
    margin-top: 0;
}

.page-test-quiz .an-qz-hero,
.test-page .an-qz-hero {
    width: 100%;
    border-radius: 14px;
    display: block;
}
