/* БЛОК - TELEGRAM КАНАЛ */
.telegram-section {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Декоративный элемент - красная линия сверху */
.telegram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-accent, #ff3333), rgba(255, 51, 51, 0.3), transparent);
}

/* Декоративный элемент - красная точка снизу справа */
.telegram-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.telegram-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Левая часть с контентом */
.telegram-content {
    flex: 1.2;
}

.telegram-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08), rgba(255, 51, 51, 0.03));
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 50px;
    color: var(--red-accent, #ff3333);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(4px);
}

.telegram-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 45px;
    color: var(--text-color, #000000);
    line-height: 1.3;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}

.telegram-title .red-text {
    color: var(--red-accent, #ff3333);
}

.telegram-title .telegram-blue {
    color: #2AABEE;
    position: relative;
    display: inline-block;
}

.telegram-title .telegram-blue::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2AABEE, transparent);
    opacity: 0.5;
}

/* Список преимуществ */
.telegram-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 50px;
}

.telegram-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--gray-text, #555555);
    font-family: Arial, sans-serif;
    transition: transform 0.4s ease, color 0.3s ease;
    cursor: default;
}

/* Эффект выделения при наведении */
.telegram-feature:hover {
    transform: translateX(7.5px);
    color: var(--text-color, #000000);
}

/* Точки-маркеры */
.feature-marker {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    background-color: var(--red-accent, #ff3333);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.telegram-feature:hover .feature-marker {
    transform: scale(1.2);
    background-color: #cc0000;
}

.telegram-feature span:last-child {
    flex: 1;
}

.bold-text {
    font-weight: 700;
    color: var(--text-color, #000000);
}

/* Обертка для кнопки - центрирование */
.telegram-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Кнопка Telegram с эффектом "парит в воздухе" */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #2AABEE 0%, #1F8BC4 100%);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.25);
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    animation: float 3s ease-in-out infinite;
    transform-origin: center;
}

/* Анимация парения */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Останавливаем анимацию при наведении и добавляем эффект подъема */
.telegram-btn:hover {
    animation: none;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(42, 171, 238, 0.4);
}

.telegram-btn i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

/* Стрелка */
.telegram-btn .btn-arrow {
    transition: transform 0.3s ease;
    font-size: 32px;
    font-weight: 700;
    font-family: monospace;
    line-height: 1;
}

.telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.telegram-btn:hover::before {
    left: 100%;
}

.telegram-btn:hover i {
    transform: scale(1.1);
}

.telegram-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.telegram-btn:active {
    transform: translateY(0px);
    animation: none;
}

/* Правая часть с изображением */
.telegram-preview {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-wrapper {
    position: relative;
    width: 60%;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.preview-image {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s ease;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Эффект поворота и увеличения при наведении */
.preview-wrapper:hover {
    transform: rotate(15deg);
}

.preview-wrapper:hover .preview-image {
    transform: scale(1.18);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ ===== */
@media (max-width: 992px) {
    .telegram-section {
        padding: 60px 0;
    }
    
    .telegram-container {
        gap: 40px;
    }
    
    .telegram-title {
        font-size: 28px;
    }
    
    .telegram-feature {
        font-size: 16px;
        gap: 12px;
    }
    
    .feature-marker {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
        margin-top: 5px;
    }
    
    .preview-wrapper {
        width: 70%;
    }
    
    .telegram-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .telegram-btn i {
        font-size: 28px;
    }
    
    .telegram-btn .btn-arrow {
        font-size: 28px;
    }
    
    .telegram-feature:hover {
        transform: translateX(5px);
    }
    
    .preview-wrapper:hover {
        transform: rotate(12deg);
    }
    
    .preview-wrapper:hover .preview-image {
        transform: scale(1.15);
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 768px) {
    .telegram-section {
        padding: 50px 0;
    }
    
    .telegram-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .telegram-content {
        flex: auto;
        width: 100%;
    }
    
    .telegram-preview {
        flex: auto;
        width: 100%;
        margin: 0 auto;
    }
    
    .telegram-title {
        font-size: 24px;
        text-align: center;
    }
    
    .telegram-badge {
        display: block;
        text-align: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }
    
    .telegram-feature {
        font-size: 15px;
        gap: 12px;
    }
    
    .telegram-feature:hover {
        transform: translateX(0);
    }
    
    .feature-marker {
        width: 9px;
        height: 9px;
        min-width: 9px;
        min-height: 9px;
        margin-top: 4px;
    }
    
    .telegram-btn {
        padding: 14px 24px;
        font-size: 14px;
        animation: float 3s ease-in-out infinite;
    }
    
    .telegram-btn i {
        font-size: 26px;
    }
    
    .telegram-btn .btn-arrow {
        font-size: 26px;
    }
    
    .preview-wrapper {
        width: 80%;
        margin: 0 auto;
    }
    
    .preview-wrapper:hover {
        transform: rotate(8deg);
    }
    
    .preview-wrapper:hover .preview-image {
        transform: scale(1.1);
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ СМАРТФОНОВ ===== */
@media (max-width: 480px) {
    .telegram-section {
        padding: 40px 0;
    }
    
    .telegram-container {
        padding: 0 15px;
        gap: 35px;
    }
    
    .telegram-title {
        font-size: 20px;
        margin-bottom: 35px;
    }
    
    .telegram-features {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .telegram-feature {
        font-size: 14px;
        gap: 10px;
    }
    
    .feature-marker {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        margin-top: 4px;
    }
    
    .telegram-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .telegram-btn i {
        font-size: 22px;
    }
    
    .telegram-btn .btn-arrow {
        font-size: 22px;
    }
    
    .preview-wrapper {
        width: 90%;
    }
    
    .preview-wrapper:hover {
        transform: rotate(5deg);
    }
    
    .preview-wrapper:hover .preview-image {
        transform: scale(1.08);
    }
}