footer.site-footer,
.site-footer {
    position: relative;
    margin-top: 72px;
    background: #ffffff !important;
    color: #243842 !important;
    border-top: 1px solid rgba(8, 128, 126, 0.12);
    box-shadow: 0 -18px 48px rgba(10, 44, 52, 0.08);
}

.site-footer__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 42px 20px 18px;
}

.site-footer__row,
.site-footer__bottom {
    opacity: 0;
    transform: translateY(18px);
}

.site-footer.is-visible .site-footer__row,
.site-footer.is-visible .site-footer__bottom {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

.site-footer.is-visible .site-footer__row:nth-child(1) { transition-delay: 40ms; }
.site-footer.is-visible .site-footer__row:nth-child(2) { transition-delay: 90ms; }
.site-footer.is-visible .site-footer__row:nth-child(3) { transition-delay: 140ms; }
.site-footer.is-visible .site-footer__row:nth-child(4) { transition-delay: 190ms; }
.site-footer.is-visible .site-footer__row:nth-child(5) { transition-delay: 240ms; }
.site-footer.is-visible .site-footer__bottom { transition-delay: 300ms; }

.site-footer__accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-footer__row {
    border-bottom: 1px solid rgba(47, 63, 74, 0.18);
    transition: background 220ms ease, border-color 220ms ease;
}

.site-footer__row:hover {
    background: linear-gradient(90deg, rgba(8, 128, 126, 0.035), transparent 65%);
    border-bottom-color: rgba(8, 128, 126, 0.22);
}

.site-footer__trigger,
.site-footer__single {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    background: transparent;
    border: none;
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: transform 220ms ease;
}

.site-footer__trigger {
    cursor: pointer;
}

.site-footer__icon {
    width: 16px;
    flex: 0 0 16px;
    color: #173039;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 220ms ease, color 220ms ease;
}

.site-footer__trigger[aria-expanded="true"] .site-footer__icon {
    transform: rotate(45deg);
}

.site-footer__label,
.site-footer__single-label {
    flex: 0 0 auto;
    color: #4a6270;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 220ms ease;
}

.site-footer__line,
.site-footer__single-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(47, 63, 74, 0.18), rgba(47, 63, 74, 0.1));
    min-width: 24px;
    transition: background 220ms ease;
}

.site-footer__trigger:hover,
.site-footer__single:hover {
    transform: translateX(2px);
}

.site-footer__trigger:hover .site-footer__icon,
.site-footer__trigger:hover .site-footer__label,
.site-footer__single:hover .site-footer__single-label {
    color: #08807e;
}

.site-footer__trigger:hover .site-footer__line,
.site-footer__single:hover .site-footer__single-line {
    background: linear-gradient(90deg, rgba(8, 128, 126, 0.35), rgba(8, 128, 126, 0.08));
}

.site-footer__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
}

.site-footer__panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 28px;
    padding: 8px 0 24px 30px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.site-footer__trigger[aria-expanded="true"] + .site-footer__panel .site-footer__panel-grid {
    opacity: 1;
    transform: translateY(0);
}

.site-footer__panel-grid a {
    color: #506775;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: color 220ms ease, transform 220ms ease;
}

.site-footer__panel-grid a:hover,
.site-footer__single:hover .site-footer__single-label {
    color: #08807e;
}

.site-footer__panel-grid a:hover {
    transform: translateX(3px);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(47, 63, 74, 0.18);
    background: linear-gradient(180deg, rgba(8, 128, 126, 0.025), transparent);
}

.site-footer__copy {
    margin: 0;
    color: #4f6572;
    font-size: 0.92rem;
}

.site-footer__social-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__social-wrap span {
    color: #4f6572;
    font-size: 0.94rem;
    font-weight: 500;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(47, 63, 74, 0.18);
    color: #13252d;
    text-decoration: none;
    box-shadow: 0 10px 16px rgba(17, 34, 40, 0.04);
    transition: transform 220ms ease, border-color 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-footer__social a:hover {
    transform: translateY(-2px);
    color: #08807e;
    border-color: rgba(8, 128, 126, 0.4);
    background: rgba(8, 128, 126, 0.05);
    box-shadow: 0 14px 22px rgba(8, 128, 126, 0.14);
}

.site-footer__accent {
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #066765 0%, #08807e 50%, #0aa19e 100%);
}

.back-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #08807e 0%, #0aa9a6 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(8, 128, 126, 0.24), inset 0 0 0 0 rgba(255, 255, 255, 0);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity, box-shadow;
}

.back-to-top-btn:hover {
    transform: translateY(-6px) scale(1.12);
    background: linear-gradient(135deg, #0bb5b0 0%, #0aa9a6 100%);
    box-shadow: 0 24px 48px rgba(8, 128, 126, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.back-to-top-btn i {
    font-size: 18px;
}

.floating-donate-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1002;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #08807e 0%, #0bb5b0 100%);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(8, 128, 126, 0.28), 0 0 20px rgba(8, 128, 126, 0);
    cursor: pointer;
    overflow: hidden;
    --donate-shift: 0px;
    transform: translateY(var(--donate-shift));
    transition: --donate-shift 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 1.2s ease, filter 1.2s ease;
    will-change: transform, box-shadow, filter;
    animation: donateFloatPulse 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.floating-donate-btn:hover {
    transform: translateY(calc(var(--donate-shift) - 6px)) scale(1.12);
    box-shadow: 0 28px 44px rgba(8, 128, 126, 0.4), 0 0 30px rgba(8, 128, 126, 0.25);
    filter: brightness(1.08);
}

.floating-donate-btn i {
    position: relative;
    z-index: 2;
    font-size: 18px;
    animation: donateHeartBeat 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.floating-donate-btn__ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.floating-donate-btn.is-shifted,
.show-scroll-buttons .floating-donate-btn {
    --donate-shift: -70px;
}

.back-to-top-btn.is-visible,
.show-scroll-buttons .back-to-top-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.donate-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.donate-modal[hidden] {
    display: none !important;
}

.donate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 29, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 280ms ease;
}

.donate-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 460px);
    padding: 28px 26px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 26px 60px rgba(11, 34, 40, 0.20);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 260ms ease;
    outline: none;
}

.donate-modal.is-active .donate-modal__backdrop {
    opacity: 1;
}

.donate-modal.is-active .donate-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.donate-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(8, 128, 126, 0.08);
    color: #066666;
    transition: transform 220ms ease, background 220ms ease;
}

.donate-modal__close:hover {
    transform: scale(1.06);
    background: rgba(8, 128, 126, 0.14);
}

.donate-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(8, 128, 126, 0.10);
    color: #08807e;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.donate-modal__dialog h3 {
    margin: 18px 0 10px;
    color: #16323d;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 900;
}

.donate-modal__dialog p {
    margin: 0;
    color: #5e727b;
    font-size: 1rem;
    line-height: 1.7;
}

.donate-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.donate-modal__cta,
.donate-modal__secondary {
    min-height: 50px;
    border-radius: 14px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 280ms ease, box-shadow 280ms ease, background 280ms ease, color 280ms ease;
}

.donate-modal__cta {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #08807e 0%, #0bb5b0 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(8, 128, 126, 0.22);
}

.donate-modal__cta:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(8, 128, 126, 0.28);
}

.donate-modal__secondary {
    flex: 0 0 auto;
    border: 1px solid rgba(8, 128, 126, 0.16);
    background: rgba(255, 255, 255, 0.68);
    color: #0b5c5a;
}

.donate-modal__secondary:hover {
    transform: translateY(-2px);
    background: rgba(230, 244, 243, 0.95);
}

body.donate-modal-open {
    overflow: hidden;
}

@keyframes donateFloatPulse {
    0% {
        transform: translateY(var(--donate-shift)) scale(1);
        box-shadow: 0 18px 32px rgba(8, 128, 126, 0.28), 0 0 15px rgba(8, 128, 126, 0.1);
    }
    25% {
        transform: translateY(calc(var(--donate-shift) - 8px)) scale(1.02);
        box-shadow: 0 22px 40px rgba(8, 128, 126, 0.35), 0 0 25px rgba(8, 128, 126, 0.15);
    }
    50% {
        transform: translateY(calc(var(--donate-shift) - 6px)) scale(1.04);
        box-shadow: 0 24px 42px rgba(8, 128, 126, 0.38), 0 0 30px rgba(8, 128, 126, 0.2);
    }
    75% {
        transform: translateY(calc(var(--donate-shift) - 4px)) scale(1.02);
        box-shadow: 0 20px 36px rgba(8, 128, 126, 0.32), 0 0 22px rgba(8, 128, 126, 0.12);
    }
    100% {
        transform: translateY(var(--donate-shift)) scale(1);
        box-shadow: 0 18px 32px rgba(8, 128, 126, 0.28), 0 0 15px rgba(8, 128, 126, 0.1);
    }
}

@keyframes donateHeartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(0.98);
    }
    42% {
        transform: scale(1.12);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.site-footer a:focus-visible,
.floating-donate-btn:focus-visible,
.back-to-top-btn:focus-visible,
.site-footer__trigger:focus-visible,
.donate-modal__close:focus-visible,
.donate-modal__secondary:focus-visible,
.donate-modal__cta:focus-visible {
    outline: 2px solid rgba(8, 128, 126, 0.45);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .site-footer__panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .site-footer__inner {
        padding: 34px 14px 16px;
    }

    .site-footer__trigger,
    .site-footer__single {
        padding: 16px 0;
        align-items: flex-start;
    }

    .site-footer__label,
    .site-footer__single-label {
        font-size: 0.96rem;
    }

    .site-footer__panel-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 30px;
    }

    .site-footer__social-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-footer__accent {
        height: 14px;
    }

    .floating-donate-btn,
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        right: 16px;
        border-radius: 16px;
    }

    .floating-donate-btn {
        bottom: 18px;
    }

    .back-to-top-btn {
        bottom: 18px;
    }

    .floating-donate-btn.is-shifted,
    .show-scroll-buttons .floating-donate-btn {
        --donate-shift: -66px;
    }

    .donate-modal__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__row,
    .site-footer__bottom,
    .site-footer__trigger,
    .site-footer__panel,
    .site-footer__panel-grid a,
    .site-footer__social a,
    .floating-donate-btn,
    .back-to-top-btn,
    .donate-modal__backdrop,
    .donate-modal__dialog {
        transition: none !important;
    }

    .floating-donate-btn i,
    .floating-donate-btn {
        animation: none !important;
    }
}
