/* ІЗОЛЬОВАНІ СТИЛІ: ФУТЕР (#site-footer) */

#site-footer.site-footer {
    background-color: #1a1d16;
    padding: 88px 0 26px;
    border-top: 2px solid rgba(179, 135, 40, 0.2);
    color: #f4f1ea;
}

#site-footer .footer-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.9fr) minmax(300px, 0.96fr);
    gap: clamp(32px, 4vw, 60px);
    margin-bottom: 56px;
    align-items: start;
}

#site-footer .footer-col {
    background: transparent;
    border: none;
    border-radius: 18px;
    padding: 18px 0 0;
    box-shadow: none;
}

#site-footer .footer-col:nth-child(2) {
    max-width: 340px;
}

#site-footer .footer-col:last-child {
    max-width: 360px;
}

#site-footer .footer-col-title {
    font-size: clamp(1.12rem, 1.14vw, 1.28rem);
    font-weight: 800;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.045em;
    line-height: 1.1;
    text-align: center;
}

#site-footer .footer-col-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
    margin-top: 12px;
    margin-inline: auto;
}

#site-footer .contact-cards {
    display: grid;
    gap: 14px;
}

#site-footer .contact-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(179, 135, 40, 0.18);
    border-radius: 0;
    padding: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#site-footer .contact-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

#site-footer .contact-label {
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#site-footer .contact-value {
    color: #f4f1ea;
    font-size: clamp(1rem, 1vw, 1.08rem);
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

#site-footer .contact-link {
    color: #f4f1ea;
    text-decoration: none;
}

#site-footer .contact-link:hover {
    color: var(--color-gold-light);
}

#site-footer .footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#site-footer .social-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(179, 135, 40, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

#site-footer .social-icon:hover {
    background: var(--color-gold);
    color: #000;
    transform: translateY(-5px);
}

#site-footer .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer .footer-links a {
    color: rgba(244, 241, 234, 0.85);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(179, 135, 40, 0.16);
    border-radius: 0;
    font-weight: 600;
    text-transform: none;
    font-size: clamp(0.96rem, 0.98vw, 1.04rem);
    letter-spacing: 0.01em;
    text-decoration: none;
}

#site-footer .footer-links a:hover {
    color: var(--color-gold-light);
    border-color: rgba(179, 135, 40, 0.45);
    transform: translateX(3px);
}

#site-footer .footer-links a.admin-link {
    color: #ffd600;
    font-weight: 800;
}

#site-footer .footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#site-footer .footer-contact-cta {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

#site-footer .footer-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

#site-footer .footer-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 14px 12px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(179, 135, 40, 0.14);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#site-footer .footer-qr-card:focus-within {
    border-color: rgba(252, 246, 186, 0.8);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 16px rgba(179, 135, 40, 0.25);
}

#site-footer .footer-qr-card--donate {
    padding-inline: 14px;
}

#site-footer .footer-qr-card-title {
    margin: 0;
    text-align: center;
    color: var(--color-gold-light);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#site-footer .footer-cta-copy {
    max-width: 32ch;
    margin: 0;
    color: rgba(244, 241, 234, 0.72);
    font-size: clamp(0.96rem, 0.94vw, 1.03rem);
    line-height: 1.68;
    letter-spacing: 0.004em;
    text-wrap: pretty;
}

#site-footer .footer-form input, 
#site-footer .footer-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(179, 135, 40, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    width: 100%;
}

#site-footer .footer-form textarea {
    resize: none;
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    overflow-y: auto;
}

#site-footer .btn-footer-send {
    width: min(100%, 292px);
    align-self: center;
    min-height: 54px;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--color-gold-light);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--type-cta);
    letter-spacing: var(--tracking-caps);
    border: 1px solid rgba(179, 135, 40, 0.6);
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#site-footer .btn-footer-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(252, 246, 186, 0.6), transparent);
    transition: left 0.6s ease;
}

#site-footer .btn-footer-send:hover {
    color: #000;
    background: linear-gradient(135deg, #b38728, #fcf6ba, #b38728);
    border-color: rgba(179, 135, 40, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(179, 135, 40, 0.35);
}

#site-footer .btn-footer-send:hover::before {
    left: 120%;
}

#site-footer .btn-footer-send:active {
    transform: translateY(0);
    box-shadow: none;
}

#site-footer .footer-qr-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 2px 0 0;
    cursor: pointer;
    align-self: center;
    position: relative;
}

#site-footer .footer-qr-trigger::after {
    content: '↗';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(252, 246, 186, 0.65);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(252, 246, 186, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    z-index: 3;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#site-footer .footer-qr-image {
    width: clamp(146px, 21vw, 188px);
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(179, 135, 40, 0.5);
    background: rgba(0, 0, 0, 0.22);
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#site-footer .footer-qr-caption {
    margin: 2px 0 0;
    align-self: center;
    width: 100%;
    text-align: center;
    color: rgba(244, 241, 234, 0.74);
    font-size: 0.84rem;
    line-height: 1.35;
    letter-spacing: 0.015em;
}

#site-footer .footer-qr-caption--donate {
    max-width: 24ch;
    line-height: 1.5;
}

#site-footer .footer-qr-card:hover {
    border-color: rgba(252, 246, 186, 0.65);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 12px rgba(179, 135, 40, 0.2);
}

#site-footer .footer-qr-trigger:hover .footer-qr-image,
#site-footer .footer-qr-trigger:focus-visible .footer-qr-image {
    transform: translateY(-2px) scale(1.015);
    border-color: rgba(252, 246, 186, 0.75);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

#site-footer .footer-qr-trigger:hover::after,
#site-footer .footer-qr-trigger:focus-visible::after {
    transform: scale(1.1);
    border-color: rgba(252, 246, 186, 0.85);
    background: rgba(179, 135, 40, 0.25);
}

#site-footer .footer-qr-trigger:active .footer-qr-image {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

#qr-image-modal .modal-content.modal-content-qr {
    width: min(94vw, 760px);
    max-height: min(94vh, 900px);
    padding: 18px;
}

#qr-image-modal .qr-modal-figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-image-modal .qr-modal-image {
    display: block;
    width: min(88vw, 680px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(179, 135, 40, 0.65);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5);
}

#site-footer .footer-links a:focus-visible,
#site-footer .contact-link:focus-visible,
#site-footer .social-icon:focus-visible,
#site-footer .btn-footer-send:focus-visible {
    outline: 2px solid rgba(252, 246, 186, 0.92);
    outline-offset: 3px;
}

#site-footer .footer-bottom {
    border-top: 1px solid rgba(179, 135, 40, 0.12);
    padding-top: 18px;
    margin-top: 8px;
}

/* БІГУЧА СТРІЧКА */
#site-footer .footer-ticker-container {
    width: 100%;
    overflow: hidden;
    background: rgba(179, 135, 40, 0.05);
    padding: 12px 0;
    margin-bottom: 25px;
}

#site-footer .footer-ticker-track {
    display: inline-block;
    white-space: nowrap;
    position: relative;
    animation: footerTickerSlide 40s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

#site-footer .footer-ticker-text {
    display: inline-block;
    margin-right: 0;
}

#site-footer .footer-ticker-container:hover .footer-ticker-track {
    animation-play-state: paused;
}

@keyframes footerTickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#site-footer .copyright-text {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(244, 241, 234, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 992px) {
    #site-footer .footer-wrapper { grid-template-columns: 1fr; text-align: left; }
    #site-footer .footer-col { padding: 20px 18px; }
    #site-footer .footer-col:nth-child(2),
    #site-footer .footer-col:last-child { max-width: none; }
    #site-footer .footer-socials { justify-content: flex-start; }
    #site-footer .contact-cards { text-align: left; }
    #site-footer .footer-links a { justify-content: flex-start; }
    #site-footer .footer-cta-copy { max-width: none; }
    #site-footer .btn-footer-send { width: 100%; }
    #site-footer .footer-qr-grid { grid-template-columns: 1fr; gap: 16px; }
    #site-footer .footer-qr-card:focus-within {
        border-color: rgba(252, 246, 186, 0.95);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 20px rgba(179, 135, 40, 0.35);
    }
    #site-footer .footer-qr-trigger { align-self: center; }
    #site-footer .footer-qr-trigger:active {
        transform: translateY(2px);
    }
    #site-footer .footer-qr-trigger:active .footer-qr-image {
        transform: translateY(-1px) scale(0.97);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    }
    #site-footer .footer-qr-image { width: min(52vw, 208px); }
    #site-footer .footer-qr-caption { font-size: 0.8rem; }
    #qr-image-modal .modal-content.modal-content-qr { padding: 14px; }
    #qr-image-modal .qr-modal-image { width: min(92vw, 620px); }
}