.gradient-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
}

/* ---- Font Awesome иконки ---- */
.gradient-button i {
    margin: 0 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-shrink: 0;
}

/* ---- SVG / PNG иконки ---- */
.gradient-button .gradient-btn-img-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
    /* ширина, высота и margin задаются инлайн из шорткода */
}

.gradient-button span {
    transition: all 0.3s ease;
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* ---- Размеры кнопок ---- */
.button-small  { padding: 8px 16px;  font-size: 14px; }
.button-medium { padding: 12px 24px; font-size: 16px; }
.button-large  { padding: 16px 32px; font-size: 18px; }
.button-x      { padding: 20px 40px; font-size: 20px; }
.button-xx     { padding: 24px 48px; font-size: 24px; }

/* ---- Иконки при наведении ---- */
.icon-hover i,
.icon-hover .gradient-btn-img-icon {
    opacity: 0;
    transform: translateX(-10px);
}
.icon-hover:hover i,
.icon-hover:hover .gradient-btn-img-icon {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Hover-эффект масштаба для SVG-иконки ---- */
.animation-scale:hover .gradient-btn-img-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* ====================================================
   АНИМАЦИИ
   ==================================================== */

/* Wave Reveal */
.animation-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    z-index: 1;
}
.animation-wave:hover::before { left: 100%; }
.animation-wave:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Scale Rotate */
.animation-scale {
    transform-origin: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.animation-scale:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.animation-scale:hover span { animation: scaleText 0.3s ease; }
@keyframes scaleText {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Slide Fill */
.animation-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.4s ease;
    z-index: 1;
}
.animation-slide:hover::before { width: 100%; }
.animation-slide i { transition: transform 0.4s ease; }
.animation-slide.icon-left i  { transform: translateX(-5px); }
.animation-slide.icon-right i { transform: translateX(5px); }
.animation-slide:hover.icon-left  i { transform: translateX(5px); }
.animation-slide:hover.icon-right i { transform: translateX(-5px); }
.animation-slide .gradient-btn-img-icon { transition: transform 0.4s ease; }
.animation-slide:hover .gradient-btn-img-icon { transform: translateX(4px); }
.animation-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Glow Pulse */
.animation-glow { box-shadow: 0 0 0 rgba(255,255,255,0); }
.animation-glow:hover {
    animation: glowPulse 1.5s infinite;
    transform: translateY(-2px);
}
@keyframes glowPulse {
    0%   { box-shadow: 0 0 0  rgba(255,255,255,0); }
    50%  { box-shadow: 0 0 20px rgba(255,255,255,0.5); }
    100% { box-shadow: 0 0 0  rgba(255,255,255,0); }
}

/* Splash Water */
.animation-splash { transition: all 0.1s ease; }
.animation-splash:hover {
    animation: splashShake 0.5s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.animation-splash::before,
.animation-splash::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    transition: all 0.5s ease;
}
.animation-splash::before { top: -10px; left: 10%; }
.animation-splash::after  { bottom: -10px; right: 10%; }
.animation-splash:hover::before { opacity: 1; transform: translate(-15px,-15px) scale(1.5); }
.animation-splash:hover::after  { opacity: 1; transform: translate(15px,15px) scale(1.5); }
@keyframes splashShake {
    0%   { transform: translate(0,0); }
    20%  { transform: translate(-2px,1px) rotate(-1deg); }
    40%  { transform: translate(2px,-1px) rotate(1deg); }
    60%  { transform: translate(-1px,2px) rotate(-0.5deg); }
    80%  { transform: translate(1px,-2px) rotate(0.5deg); }
    100% { transform: translate(0,0); }
}

/* Liquid Flow */
.animation-liquid {
    position: relative;
    transition: all 0.2s ease;
}
.animation-liquid .liquid-filter {
    position: absolute;
    width: 0; height: 0;
    pointer-events: none;
}
.animation-liquid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Совместимость с баннерами */
.banner .gradient-button {
    margin: 0 auto;
    display: inline-flex;
}