/* ОСНОВНЫЕ СТИЛИ КНОПОК */
.smart-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    overflow: hidden !important; /* Изменено с visible на hidden */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    min-width: 300px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    z-index: 1;
    transform-origin: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    will-change: transform, box-shadow, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.smart-button.secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.button-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 2;
}

.button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.button-text {
    flex-grow: 1;
    text-align: center;
    z-index: 2;
    position: relative;
}

.button-subtext {
    font-size: 0.8em;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

/* ====== ИДЕНТИЧНЫЕ ХОВЕР ЭФФЕКТЫ ДЛЯ ВСЕХ КНОПОК ====== */
.smart-button:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4) !important;
}

.smart-button.secondary:hover {
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4) !important;
}

.smart-button:hover .button-icon {
    transform: rotate(15deg) scale(1.2) !important;
}

/* БЛЕСТЯЩИЙ ЭФФЕКТ ПРИ ХОВЕРЕ - ОДИНАКОВЫЙ ДЛЯ ВСЕХ */
.smart-button:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    z-index: 1;
    pointer-events: none;
    border-radius: 15px;
    animation: hoverShine 1.5s infinite;
}

@keyframes hoverShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ====== ЭФФЕКТ ПРИ НАЖАТИИ/ТАПЕ ====== */
.smart-button:active,
.smart-button.click-active {
    animation: clickPulse 0.3s ease-out !important;
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(0.95);
        filter: brightness(1.3);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5),
                    inset 0 0 30px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

/* ДЛЯ ВТОРОЙ КНОПКИ */
.smart-button.secondary:active,
.smart-button.secondary.click-active {
    animation: clickPulseSecondary 0.3s ease-out !important;
}

@keyframes clickPulseSecondary {
    0% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    }
    50% {
        transform: scale(0.95);
        filter: brightness(1.3);
        box-shadow: 0 5px 15px rgba(79, 172, 254, 0.5),
                    inset 0 0 30px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    }
}

/* ВСПЫШКА ПРИ КЛИКЕ - ОДИНАКОВАЯ ДЛЯ ВСЕХ */
.click-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: flashAnimation 0.4s ease-out;
}

.smart-button.secondary .click-flash {
    background: rgba(79, 172, 254, 0.8);
}

@keyframes flashAnimation {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* УБИРАЕМ ВСЕ ВОЛНЫ */
.wave {
    display: none !important;
}

/* АДАПТИВНОСТЬ */
@media (min-width:750px){
    .smart-button {
        padding: 18px 30px;
        font-size: 1.1em;
        min-width: 250px;
        min-height: 60px;
    }
    
    .button-icon {
        width: 35px;
        height: 35px;
    }
}

@media (min-width:300px){
    .smart-button {
    padding-right: 3%;
    font-size: 46px;
    min-width: 299px;
    max-width: 450px;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-left: 3%;
    width: 90%;
    }

    
    .button-icon {
    width: 30px;
    height: 30px;
    }

}

@media (max-width:299px){
.smart-button {
    padding: 15px 25px;
    font-size: 1em;
    min-width: 100px;
    min-height: 55px;
    }
.button-icon {
    width: 15px;
    height: 15px;
    }
}