.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 92vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

/* Фото на фоне */
.hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Затемнение: сверху для навигации, снизу для текста */
.hero__shade {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to bottom, rgba(15, 17, 21, 0.55) 0%, rgba(15, 17, 21, 0) 25%),
            linear-gradient(to top, var(--bg) 0%, rgba(15, 17, 21, 0.75) 35%, rgba(15, 17, 21, 0.2) 70%);
}

.hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) 32px 72px;
}

.hero__content {
    max-width: 620px;
}

/* Имя */
.hero__title {
    margin: 0 0 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__text {
    margin: 0 0 32px;
    color: #b6bac3;
    font-size: 18px;
    line-height: 1.6;
}

/* Кнопки */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}


.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Аватар */
.hero__avatar {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg);
    box-shadow:
            0 0 0 1px rgba(165, 180, 252, 0.35),
            0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Планшет */
@media (max-width: 1024px) {
    .hero__avatar {
        width: 240px;
        height: 240px;
    }
}

/* Мобильный: аватар над текстом */
@media (max-width: 760px) {
    .hero {
        min-height: auto;
    }

    .hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 28px;
        padding: calc(var(--nav-height) + 120px) 20px 48px;
    }

    .hero__content {
        width: 100%;
        max-width: none;
    }

    .hero__avatar {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        box-sizing: border-box;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        text-align: center;
        white-space: normal;
    }
}