.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    padding: 80px 24px 100px;
}

/* ─── Glow эффекты ─── */
.hero-section__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-section__glow--card {
    width: 157px;
    height: 149px;
    background: linear-gradient(135deg, #565dfa 0%, #62f1cf 50%, #62c6f1 100%);
    filter: blur(40px);
    border-radius: 50%;
    opacity: 0.7;
}

.hero-section__glow--right {
    width: 50%;
    height: 80%;
    top: 0%;
    left: 65%;
    background: linear-gradient(135deg, #565dfa 0%, #62f1cf 50%, #62c6f1 100%);
    filter: blur(53px);
    border-radius: 50%;
    opacity: 0.7;
}

/* ─── PNG профиля ─── */
.hero-section__profile {
    position: absolute;
    top: -6%;
    right: -5%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.hero-section__profile-img {
    height: 90%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ─── Контейнер ─── */
.hero-section__container {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 4.5em;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 55%; /* текст занимает левую часть, PNG справа */
}

/* ─── Текстовый блок ─── */
.hero-section__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-section__headline {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    line-height: 1.25;
}

.hero-section__body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: 1.75;
}

/* ─── Белая карточка ─── */
.hero-section__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    align-self: center;
}

.hero-section__card-title {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
}

.hero-section__card-body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.75;
}

.hero-section__card-wrap {
    position: relative;
    align-self: center;
}

/* Карточка поверх шариков */
.hero-section__card {
    position: relative;
    z-index: 1;
    align-self: unset; /* убираем старый align-self */
}

/* Шарики позиционируем относительно враппера */
.hero-section__card-wrap .hero-section__glow--card {
    position: absolute;
    z-index: 0;
}

/* ══ DESKTOP — оба по бокам, ближе к верху ══ */
.hero-section__glow--card__left {
    top: 20%;
    left: 0;
    transform: translate(-50%, -50%);
}

.hero-section__glow--card__right {
    top: 20%;
    right: 0;
    left: auto;
    transform: translate(50%, -50%);
}

@media (max-width: 1276px) {
    .hero-section__profile {
        top: -20%;
    }
    .hero-section__profile-img {
        height: 70%;
    }
}

@media (max-width: 1062px) {
    .hero-section__profile {
        top: -30%;
    }
    .hero-section__profile-img {
        height: 60%;
    }
}

@media (max-width: 1062px) {
    .hero-section__profile {
        top: -40%;
    }
    .hero-section__profile-img {
        height: 50%;
    }
}

@media (max-width: 768px) {
    .hero-section__profile {
        top: -6%;
    }
    .hero-section__profile-img {
        height: 90%;
    }
    .hero-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .hero-section__container {
        margin: 0;
        max-width: 100%;
    }
    .hero-section__profile {
        top: -2%;
        right: -5%;
        height: 40%;
    }
    .hero-section__content {
        max-width: 70%;
    }
    .hero-section__headline {
        font-size: 17px;
        font-weight: 500;
    }
    .hero-section__card-title {
        font-size: 17px;
    }
    .hero-section__glow--right {
        width: 60%;
        height: 60%;
        top: -15%;
        left: 73%;
    }
    .hero-section__glow--card__right {
        top: 90%;
    }
}

@media (max-width: 520px) {
    .hero-section {
	padding: 40px 15px;
    }
    .hero-section__content {
	max-width: 100%;
    }
    .hero-section__profile {
	display: none;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 40px 15px;
    }
    .hero-section__glow {
        display: none;
    }
    .hero-section__profile {
        display: none;
    }
    .hero-section__content {
        max-width: 100%;
    }
    .hero-section__headline {
        font-size: 22px;
    }
    .hero-section__body {
        font-size: 16px;
    }
    .hero-section__card {
        padding: 22px 15px;
    }
    .hero-section__card-title {
        font-size: 15px;
    }
    .hero-section__card-body {
        font-size: 14px;
    }
}
