:root {
    --green-main: #2e7d32;
    --green-dark: #1b5e20;
    --green-light: #e8f5e9;
}

body { margin: 0; font-family: 'Segoe UI', sans-serif; background: #f9fbf9; }

header {
    background: var(--green-main);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.back-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover { color: var(--green-light); }

.lang-btn {
    background: white; color: var(--green-main);
    border: none; padding: 8px 15px; border-radius: 20px;
    font-weight: bold; cursor: pointer;
}

.hero { text-align: center; padding: 30px 20px; }
.hero h1 { color: var(--green-dark); margin: 0 0 10px; }
.hero p { color: #666; margin: 0; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; padding: 20px 5% 40px;
    max-width: 1200px; margin: 0 auto;
}

.card {
    background: white; height: 70px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--green-main);
    font-weight: 600; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid var(--green-main);
    transition: 0.2s; text-align: center;
}

.card:hover { transform: translateY(-2px); background: var(--green-light); }

@media (max-width: 900px) { .grid-container { grid-template-columns: repeat(2, 1fr); } }

/* Кнопка Наверх */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--green-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Скрыта по умолчанию */
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}

#scroll-top:hover {
    background-color: var(--green-main);
    transform: scale(1.1);
}

#scroll-top:active {
    transform: scale(0.9);
}