/* ============================================
   Стили секции Hero
   ============================================ */

#hero {
    position: relative;
    overflow: visible;
}

.hero-container {
    position: relative;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-3xl);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(-30%, 50%);
    z-index: 10;
    pointer-events: none;
}

.hero-text-content {
    pointer-events: auto;
    background-color: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
}

/* Адаптивные отступы */
@media (max-width: 991.98px) {
    .hero-text {
        transform: translate(-25%, 40%);
    }
}

@media (max-width: 575.98px) {
    #hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-text {
        transform: translate(-20%, 30%);
    }
    
    .hero-text-content {
        padding: 1rem 1.25rem;
    }
    
    .hero-text-content h1 {
        font-size: var(--font-size-6xl) !important;
    }
}

/* Фото в hero: максимум скругления, кроме правого верхнего угла */
.hero-photo {
    border-radius: var(--radius-circle);
    border-top-right-radius: 0;
}

/* Мобильная версия: у фото прямой левый нижний угол, остальные скруглённые */
@media (max-width: 575.98px) {
    .hero-photo {
        border-radius: var(--radius-circle);
        border-bottom-left-radius: 0;
    }
}

/* Общие правила для фото внутри hero-блоков */
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Обёртка фото и круги-преимущества */
.hero-photo-wrapper {
    position: relative;
    display: inline-block;
}

.hero-badges {
    position: absolute;
    left: -10px;
    bottom: -10px;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.hero-badge {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    will-change: transform;
}

.hero-badge-title {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
}

.hero-badge-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-gray);
}

/* Анимация кругов: лёгкое плавание и увеличение */
@keyframes heroBadgeFloat1 {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.06);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroBadgeFloat2 {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.hero-badge:nth-child(1) {
    animation: heroBadgeFloat1 5s ease-in-out infinite;
}

.hero-badge:nth-child(2) {
    animation: heroBadgeFloat2 6.5s ease-in-out infinite;
}

@media (max-width: 991.98px) {
    .hero-badges {
        left: -6px;
        bottom: -6px;
    }
}

@media (max-width: 575.98px) {
    .hero-badges {
        left: auto;
        right: -6px;
        top: -6px;
        bottom: auto;
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-badge {
        width: 90px;
        height: 90px;
        padding: 0.4rem;
    }

    .hero-badge-title {
        font-size: var(--font-size-sm);
    }

    .hero-badge-subtitle {
        font-size: var(--font-size-xs);
    }
}
