:root {
    --eco-green: #4CAF50;
    --eco-green-dark: #2e7d32;
    --eco-leaf: #81C784;
    --eco-cream: #F9FBE7;
    --eco-sky: #E0F7FA;
    --white: #fff;
    --black: #000;
    --text: #1f3d2b;
    --text-soft: #4b6b5a;
    --line: #cfead6;
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, .08);
    --glow: 0 0 0 3px rgba(76, 175, 80, .20);
    --r-sm: 14px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --pill: 999px;
    --t: .25s ease;
    --container: 980px;
}

.tools-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.back-to-top {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(76, 175, 80, .45);
    transition: transform var(--t), box-shadow var(--t), opacity var(--t);
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-2px)
}

.back-to-top:active {
    transform: translateY(0)
}

.contact-block {
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, .92);
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, .22);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .08);
}

.contact-block p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 12px 0;
    font-size: 15px;
}

.contact-block .icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(76, 175, 80, .12);
    font-size: 18px;
}

.contact-block a {
    color: var(--eco-green-dark);
    font-weight: 900
}

.contact-block a:hover {
    text-decoration: underline
}

.contact-block .note {
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(129, 199, 132, .18);
    border: 1px solid rgba(76, 175, 80, .18);
    font-size: 12px;
    font-style: normal;
    color: #1f3d2b;
}

#contactPanel {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 9999;
    width: min(560px, 94vw);
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding: 32px 30px;
    background: radial-gradient(circle at top right, rgba(129, 199, 132, .25), transparent 45%),
    linear-gradient(160deg, #fbfffd, #e9f6ef);
    border-radius: 30px;
    border: 1px solid rgba(76, 175, 80, .20);
    box-shadow: 0 34px 80px rgba(0, 0, 0, .18);
    text-align: left;
    animation: contactUp .25s ease;
}

#contactPanel::-webkit-scrollbar {
    width: 10px
}

#contactPanel::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, .22);
    border-radius: 999px
}

#contactPanel::-webkit-scrollbar-track {
    background: transparent
}

#contactClose {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(76, 175, 80, .28);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: transform var(--t), box-shadow var(--t);
    color: black;
}

#contactClose:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .16);
}

.contact-intro {
    margin: 8px 0 18px 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: #264c38;
}


#contactBtn {
    align-items: center;
    padding: 14px 22px;
    border-radius: var(--pill);
    background: linear-gradient(135deg, var(--white), #f1fdf4);
    border: 2px solid rgba(76, 175, 80, .25);
    color: var(--eco-green-dark);
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(76, 175, 80, .22);
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), filter var(--t);
    font-family: Poppins, system-ui, Arial, sans-serif;
}

#contactBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(76, 175, 80, .32);
    filter: saturate(1.05);
}

@media (max-width: 520px) {
    .back-to-top {
        right: 90px
    }

    #contactBtn {
        right: 14px;
        bottom: 14px;
        padding: 12px 18px;
        font-size: 15px;
    }

    #contactPanel {
        right: 14px;
        bottom: 76px;
        width: min(520px, 94vw);
        padding: 22px 18px;
    }
}