/* ==========================================================================
   blick buttons
   ========================================================================== */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 1;
    pointer-events: none;

    animation: shimmer 3s infinite;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn:hover {
    background: #e5ff52;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    20% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

.btn.white::before {
    display: none;
}
/* ==========================================================================
   underline buttons
   ========================================================================== */
.hero-actions a:not(.btn),
.cta-links a:not(.btn),
.process a:not(.btn),
.contact-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Отступ между иконкой и текстом */
    position: relative;
    text-decoration: none;
    padding: 10px 0;
}

.hero-actions a:not(.btn) span,
.cta-links a:not(.btn) span,
.process a:not(.btn) span,
.contact-box a span {
    display: inline-block;
    transition: letter-spacing 0.3s ease;
}

.hero-actions a:not(.btn):hover span,
.cta-links a:not(.btn):hover span,
.process a:not(.btn):hover span,
.contact-box a:hover span {
    letter-spacing: 3px; /* Эффект раздвигания */
}

.hero-actions a:not(.btn)::before,
.hero-actions a:not(.btn)::after,
.cta-links a:not(.btn)::before,
.cta-links a:not(.btn)::after,
.process a:not(.btn)::before,
.process a:not(.btn)::after,
.contact-box a::before,
.contact-box a::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: currentColor; /* Линия берет цвет текста */
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.hero-actions a:not(.btn)::before,
.cta-links a:not(.btn)::before,
.process a:not(.btn)::before,
.contact-box a::before {
    top: 0;
}

.hero-actions a:not(.btn)::after,
.cta-links a:not(.btn)::after,
.process a:not(.btn)::after,
.contact-box a::after {
    bottom: 0;
}

.hero-actions a:not(.btn):hover::before,
.hero-actions a:not(.btn):hover::after,
.cta-links a:not(.btn):hover::before,
.cta-links a:not(.btn):hover::after,
.process a:not(.btn):hover::before,
.process a:not(.btn):hover::after,
.contact-box a:hover::before,
.contact-box a:hover::after {
    width: 100%;
    opacity: 1;
}
/* ==========================================================================
  glow buttons
   ========================================================================== */
.btn.btn-glow {
    --glow-1: var(--lime);
    --glow-2: #39e07a;
    --glow-3: #00d4ff;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 25px;

    border: 2px solid transparent;
    border-radius: 4px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background:
            linear-gradient(var(--ink), var(--ink)) padding-box,
            linear-gradient(90deg, var(--glow-1), var(--glow-2), var(--glow-3)) border-box !important;

    box-shadow:
            -4px 0 12px rgba(214, 242, 61, 0.3),
            0 0 12px rgba(57, 224, 122, 0.2),
            4px 0 12px rgba(0, 212, 255, 0.3);

    transition: box-shadow 0.3s ease !important;
}

.btn.btn-glow::before,
.btn.btn-glow::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}
.btn.btn-glow:hover,
.btn.btn-glow:focus,
.btn.btn-glow:active {
    color: #fff !important;
    transform: none !important;
    filter: none !important;
    outline: none !important;
    background:
            linear-gradient(var(--ink), var(--ink)) padding-box,
            linear-gradient(90deg, var(--glow-1), var(--glow-2), var(--glow-3)) border-box !important;
}

.btn.btn-glow:hover {
    box-shadow:
            -6px 0 18px rgba(214, 242, 61, 0.5),
            0 0 18px rgba(57, 224, 122, 0.35),
            6px 0 18px rgba(0, 212, 255, 0.5);
}

.btn.btn-glow.no-fx,
.btn.btn-glow.no-fx:hover,
.btn.btn-glow.no-fx:active,
.btn.btn-glow.no-fx:focus {
    transform: none !important;
    filter: none !important;
    outline: none !important;
    transition: box-shadow 0.3s ease !important;
}

.btn.btn-glow.no-fx {
    color: #fff !important;
    background:
            linear-gradient(var(--ink), var(--ink)) padding-box,
            linear-gradient(90deg, var(--glow-1), var(--glow-2), var(--glow-3)) border-box !important;
}

@media (prefers-reduced-motion: reduce) {
    .btn.btn-glow { transition: none; }
}