.hero-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}


/* Фон главной секции */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--tg-theme-secondary-bg-color) 1px, transparent 1px), linear-gradient(90deg, var(--tg-theme-secondary-bg-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.circle-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(31, 111, 235, 0.3) 0%, rgba(31, 111, 235, 0.1) 70%);
    animation: float 30s ease-in-out infinite;
}

.circle-2 {
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.2) 0%, rgba(88, 166, 255, 0.05) 70%);
    animation: float 25s ease-in-out infinite reverse;
}

.circle-3 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(137, 85, 229, 0.2) 0%, rgba(137, 85, 229, 0.05) 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(0, 50px) rotate(0deg);
    }
    75% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.3;
    }
}


/* Логотип и анимация */

.hero-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.logo-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(31, 111, 235, 0.5);
}

.logo-ring {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-radius: 50%;
    border: 2px solid rgba(88, 166, 255, 0.5);
    animation: spin 20s linear infinite;
    z-index: 0;
}

.logo-ring:before,
.logo-ring:after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--tg-theme-link-color);
    border-radius: 50%;
}

.logo-ring:before {
    top: 10%;
    left: 50%;
}

.logo-ring:after {
    bottom: 10%;
    right: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Текстовый градиент */

.text-gradient {
    background: linear-gradient(to right, #58a6ff, #5240f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Стили для карточек */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-color-rgb), 0.5);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.2), var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
    flex-grow: 1;
}


/* Стеклянный алерт */

.glass-alert {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(13, 202, 240, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0dcaf0;
}


/* Свечение для кнопок */

.btn-glow {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(31, 111, 235, 0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 111, 235, 0.6);
}

.btn-glow:active {
    transform: scale(0.98);
}


/* Стили для блока возможностей */

.feature-card {
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--tg-theme-secondary-bg-color);
}

.feature-item {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.3);
}

.feature-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.2), rgba(88, 166, 255, 0.2));
    color: var(--tg-theme-link-color);
    border-radius: 12px;
    margin-right: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-content {
    flex: 1;
}


/* Стили для заголовка раздела */

.section-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    margin-left: 15px;
}


/* Адаптивность */

@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .logo-ring {
        width: 130%;
        height: 130%;
        top: -15%;
        left: -15%;
    }
}

.gradient-text {
    background-image: linear-gradient(135deg, #3b82f6, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    letter-spacing: 0.5px;
}