.link {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 2px 0;
}

/* Вариант 1: Подчеркивание при наведении */
.link.underline-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6B735E; /* Ваш зеленый цвет */
    transition: width 0.3s ease;
}

.link.underline-hover:hover::after {
    width: 100%;
}

.link.underline-hover:active::after {
    background-color: #5a6250; /* Темнее при нажатии */
}

/* Вариант 2: Изменение цвета и небольшое смещение */
.link.color-shift {
    color: #333;
}

.link.color-shift:hover {
    color: #6B735E;
    transform: translateY(-2px);
}

.link.color-shift:active {
    color: #5a6250;
    transform: translateY(0);
}

/* Вариант 3: Фоновое выделение */
.link.highlight-hover {
    padding: 4px 8px;
    border-radius: 4px;
}

.link.highlight-hover:hover {
    background-color: rgba(107, 115, 94, 0.1); /* Светло-зеленый фон */
}

.link.highlight-hover:active {
    background-color: rgba(107, 115, 94, 0.2);
    transform: scale(0.98);
}

/* Вариант 4: Плавное изменение opacity */
.link.fade-hover {
    opacity: 0.8;
}

.link.fade-hover:hover {
    opacity: 1;
}

.link.fade-hover:active {
    opacity: 0.9;
}

/* Вариант 5: Иконка стрелки при наведении */
.link.arrow-hover::after {
    content: ' →';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    display: inline-block;
}

.link.arrow-hover:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.link.arrow-hover:active::after {
    transform: translateX(3px);
}

/* Стили для всех кнопок (button) */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Вариант 1: Подъем при наведении и нажатие */
.button.lift-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button.lift-hover:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

/* Вариант 2: Изменение фона */
button.bg-change:hover {
    background-color: #5a6250 !important; /* Темнее на 15% */
}

button.bg-change:active {
    background-color: #4a523f !important; /* Еще темнее */
    transform: scale(0.98);
}

/* Вариант 3: Контурная анимация */
button.outline-animate {
    border: 2px solid transparent !important;
}

button.outline-animate:hover {
    border-color: #6B735E !important;
    background-color: transparent !important;
    color: #6B735E !important;
}

button.outline-animate:active {
    border-color: #5a6250 !important;
    color: #5a6250 !important;
}

/* Вариант 4: Эффект "пульсации" при нажатии */
button.pulse-active:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(107, 115, 94, 0.2);
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Вариант 5: Эффект "заполнения" слева направо */
button.fill-hover {
    background: linear-gradient(to right, #6B735E 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease;
    border: 2px solid #6B735E !important;
    color: #6B735E !important;
}

button.fill-hover:hover {
    background-position: left bottom;
    color: white !important;
}

button.fill-hover:active {
    background-color: #5a6250;
    border-color: #5a6250 !important;
}

/* Вариант 6: Простое затемнение */
button.darken-hover:hover {
    filter: brightness(0.9);
}

button.darken-hover:active {
    filter: brightness(0.8);
}

/* Вариант 7: Эффект "нажатия" с тенью */
button.press-effect {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button.press-effect:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button.press-effect:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(2px);
}

/* Анимация для кнопок в навбаре (как в вашем примере) */
.navbar button.text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 115, 94, 0.3);
}

.navbar button.text:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(107, 115, 94, 0.2);
}

/* Анимация для зеленых кнопок */
button.bg-green {
    transition: all 0.3s ease;
}

button.bg-green:hover {
    background-color: #5a6250;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 115, 94, 0.3);
}

button.bg-green:active {
    background-color: #4a523f;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(107, 115, 94, 0.2);
}

/* Отключение outline по умолчанию, но с фокусом для доступности */
button:focus,
.link:focus {
    outline: 2px solid #6B735E;
    outline-offset: 2px;
}

/* Для мобильных устройств - уменьшаем анимации */
@media (max-width: 768px) {
    button.lift-hover:hover {
        transform: translateY(-2px);
    }
    
    .link.color-shift:hover {
        transform: translateY(-1px);
    }
}