html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gilroy Regular';
    margin: 0;
}

.lp-page {
    background-color: #F2F2F2;
}

.lp-container {
    margin: 0 auto;
    max-width: 680px;
    padding: 16px 16px 10vh 16px;
    min-height: 100vh;
}

.gilroy-regular {
    font-family: 'Gilroy Regular';
}
.gilroy-bold {
    font-family: 'Gilroy Bold';
}

@media (max-width: 425px) {
    .mobile-hide {
        display: none;
    }
}
@media (min-width: 426px) {
    .pc-hide {
        display: none;
    }
}

.donate-header {
    grid-template-columns: auto 1fr;
}

.primary-button {
    background-color: #dc2626;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    text-align: center;
    width: 100%;
    max-width: 375px;
    border: none;
    max-height: 48px;
    font-family: 'Gilroy Regular';
    font-size: 1rem;
    cursor: pointer;
}

h2 {
    font-family: 'Gilroy Bold';
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 100;
}
p {
    font-family: 'Gilroy Regular';
    font-size: 1rem;
    line-height: 1.5;
}

hr {
    margin: 0;
    height: 1px;
    background-color: #e5e7eb;
    border: none;
}


.basic-block {
    border-radius: 1rem;
    border: 1px solid #D9D9D9;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.stat-box {
    text-align: left;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    padding: 16px;
}
.component-badge,
.stat-label {
    font-size: 0.75rem;
    background-color: #efefef;
    padding: 2px 8px;
    border-radius: 8px;
    display: block;
    max-width: fit-content;
}
.total-box {
    background-color: #1f88c9;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
}
.total-label {
    font-size: 0.75rem;
    background-color: white;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* Для логотипів партнерів у футері */
.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 16px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
.partners-list__item {
    padding: 16px;
    border-radius: 8px;
    border: solid 1px #fff;
    background-color: #fbfbfb;
    display: flex;
    justify-content: center;
    align-items: center;

    & img {
        height: 48px;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}
/* Кінець для логотипів партнерів у футері */

/* Блок з якорними посиланнями */
.anchor-links-block {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #fff;
    text-align: left;

    & .anchor-link-header {
        font-size: 1rem;
        line-height: 1.4rem;
    }
}

a.anchor-link {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    gap: 16px;
    padding: 1rem;
    color: #38383B;
    transition: .2s ease-in-out;
    text-decoration: none;
    align-items: center;

    &:first-child {
        border-radius: 1rem 1rem 0 0;
    }

    &:last-child {
        border-radius: 0 0 1rem 1rem;
    }

    &:hover {
        background-color: #F2F2F2;
    }

    & img {
        max-width: 20px;
        stroke: #D9D9D9;
    }
}
/* Кінець блок з якорними посиланнями */

/* Відповіді на FAQ */
#faq-root h4 {
    text-transform: uppercase;
    color: #D9D9D9;
    margin: 32px 0 0 14px;
    font-size: 0.785rem;
}

.faq-answers-block {
    display: grid;
    margin: 8px 0;
    padding: 0 12px;

    & h4 {
        padding: 16px;
        background-color: #D9D9D9;
        border-radius: 16px 16px 0 0;
    }

    & h5 {
        font-size: 1rem;
        line-height: 1.5rem;
        margin: 0;
        font-family: 'Gilroy Regular';
        font-weight: normal;
        color: #dc2626;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
        justify-content: space-between;
    }

    & p {
        font-size: 14px;
        line-height: 1.8;
        margin: 8px 0 0 0;
    }
}

.faq-answer {
    border-top: solid 1px #d9d9d9;
    padding: 12px 0;
    cursor: pointer;

    &:first-child {
       border-top: none;
    }
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s cubic-bezier(0.4,0,0.2,1), margin-top 0.2s;
    margin: 0;
}
.faq-content.open {
    max-height: 1000px; /* достатньо велике значення */
    opacity: 1;
    margin: 16px 0;
}

.faq-answer.open .faq-content {
    max-height: 100%;
    opacity: 1;
    margin-top: 8px;
    transition:
        max-height 0.3s cubic-bezier(0.4,0,0.2,1),
        opacity 0.2s cubic-bezier(0.4,0,0.2,1),
        margin-top 0.2s;
}

.faq-toggle-icon {
    display: flex;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    color: #DADAD7;
}
.faq-answer.open .faq-toggle-icon {
    transform: rotate(180deg);
}






.accordion-group {
    display: grid;
    gap: 8px;
    margin-bottom: 32px;

    & h4 {
        margin: 0 16px;
        font-family: 'Gilroy Bold';
        color: #38383B;
        font-size: 1rem;
        font-weight: normal;
    }
}

.accordion-item {
    cursor: pointer;
    padding: 0 16px;
    margin: 0;
    background-color: #fff;
    border-radius: 16px;
    color: #38383B;
}
.accordion-item.active  {
    background-color: #efe1da;

    & .accordion-content {
        display: block;
        max-height: 2000px;
        border-top: solid 1px #fff;
    }
}
.accordion-toggle-icon {
    display: flex;
    vertical-align: middle;
    margin-left: 8px;

    & svg {
    transition: transform 0.3s;
    height: 20px;
    width: 20px;
}
}
.accordion-item.active .accordion-toggle-icon svg {
    transform: rotate(180deg);
    stroke: #fff;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 16px 0;
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    opacity: 1;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    display: block;

    & p {
        margin: 16px 0 0 0;
        font-size: 1rem;
        line-height: 1.5;
        text-align: left;
    }

    & ul,ol {
        font-size: 1rem;
        line-height: 1.5;
        margin: 8px 0 24px 0;
        padding-inline-start: 24px;
        text-align: justify;

        & li { 
            margin-bottom: 8px;  
        }
    }

    > *:last-child {
        padding-bottom: 16px;
    }
}
/* Кінець відповіді на FAQ */