/* Scroll offset control - можно настроить отступ для каждой секции */
:root {
    --faq-scroll-offset: -330px;
}

.nav-blog {
    z-index: 99;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 16px;
    display: flex;
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
}

.form-done {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: var(--black-10);
}

.button-white {
    color: var(--white);
}

.section-small-blog {
    background-color: var(--black-90);
    min-height: 200px;
    padding-top: 88px;
    padding-bottom: 88px;
}

.hero-bottom-wrapper {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-bottom-wrapper::-webkit-scrollbar {
    display: none;
}

.currency-wrapper {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.currency-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 991px) {
    .nav-buttons {
        display: none !important;
    }

    .button-secondary.is-white.is-nav {
        display: none !important;
    }

    .button-primary.is-nav.is-dark {
        display: none !important;
    }
}

.section-small-blog {
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer-animation {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.section-small {
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer-animation {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

/* FAQ Page Styles */
.faq-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .faq-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        padding: 0 40px;
    }
}

.faq-main-content {
    flex: 1;
    background: var(--black-90);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}



@media (min-width: 992px) {
    .faq-main-content {
        padding: 0;
        max-width: 800px;
    }
}

.faq-title {
    text-align: center;
    color: var(--white);
    font-size: 48px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 1.1;
    word-wrap: break-word;
    margin: 180px 0 65px 0;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 56px;
    }
}

@media (min-width: 992px) {
    .faq-title {
        font-size: 64px;
        line-height: 70.40px;
    }
}

.faq-section {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: flex;
}

.faq-section-1,
.faq-section-2,
.faq-section-3,
.faq-section-4,
.faq-section-5 {
    position: relative;
    left: auto;
    top: auto;
}

/* Индивидуальная настройка отступов для каждой секции (при необходимости) */
/* Пример: если нужен другой отступ для конкретной секции, раскомментируйте и измените значение */
/*
#general {
    scroll-margin-top: 100px;
}

#accounts-verification {
    scroll-margin-top: 140px;
}
*/

.faq-section-title {
    color: var(--orange-dark);
    font-size: 28px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
}

@media (min-width: 768px) {
    .faq-section-title {
        font-size: 32px;
    }
}

@media (min-width: 992px) {
    .faq-section-title {
        font-size: 36px;
        line-height: 43.20px;
    }
}

.faq-items {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: flex;
}

.faq-item {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    display: flex;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
}

.faq-item-header {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    display: inline-flex;
}

.faq-question {
    flex: 1 1 0;
    color: var(--white);
    font-size: 16px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 25.60px;
    letter-spacing: 0.80px;
    word-wrap: break-word;
}

.faq-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.faq-icon svg {
    transition: transform 0.3s ease;
    transform-origin: center;
}

.faq-item:not([open]) .faq-icon svg {
    transform: rotate(180deg);
}

.faq-answer {
    align-self: stretch;
    color: var(--black-20);
    font-size: 14px;
    font-family: Ppmori, sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.70px;
    word-wrap: break-word;
    padding-top: 16px;
}

@media (max-width: 991px) {
    .faq-answer {
        width: 100vw;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - -50vw);
        padding-bottom: 8px;
    }
}

.faq-link {
    color: var(--orange-dark);
    font-size: 14px;
    font-family: Ppmori, sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.70px;
    text-decoration: underline;
}

.faq-divider {
    align-self: stretch;
    height: 1px;
    background: #282828;
}

/* Fees Table */
.faq-fees-table {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: max-content;
    min-width: 784px;
    overflow: visible;
    align-items: flex-start;
}

.faq-table-header {
    display: grid;
    grid-template-columns: 240px 240px 304px;
    gap: 0;
    width: max-content;
    min-width: 784px;
}

.faq-table-cell-header {
    color: var(--white);
    font-size: 16px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 25.60px;
    letter-spacing: 0.80px;
    word-wrap: break-word;
    background: var(--black-100);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-table-body {
    display: grid;
    grid-template-columns: 240px 240px 304px;
    gap: 0;
    width: max-content;
    min-width: 784px;
}

.faq-table-row {
    display: contents;
}

.faq-table-cell {
    text-align: center;
    color: var(--white);
    font-size: 16px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 25.60px;
    word-wrap: break-word;
    background: var(--black-100);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-table-cell-price {
    text-align: center;
    color: var(--white);
    font-size: 24px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 28.80px;
    word-wrap: break-word;
    background: var(--black-100);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-table-cell-desc {
    color: var(--black-20);
    font-size: 16px;
    font-family: Ppmori, sans-serif;
    font-weight: 400;
    line-height: 25.60px;
    letter-spacing: 0.80px;
    word-wrap: break-word;
    background: var(--black-100);
    height: 75px;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

/* Sidebar */
.faq-sidebar {
    width: 100%;
    background: var(--black-100);
    order: -1;
}

@media (min-width: 992px) {
    .faq-sidebar {
        width: 364px;
        flex-shrink: 0;
        position: sticky;
        top: 135px;
        order: 0;
        height: fit-content;
    }
}

.faq-sidebar-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .faq-sidebar-content {
        padding: 32px 30px;
    }
}

@media (min-width: 992px) {
    .faq-sidebar-content {
        padding: 32px 40px;
    }
}

.faq-sidebar-title {
    color: var(--black-40);
    font-size: 16px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 25.60px;
    letter-spacing: 0.80px;
    word-wrap: break-word;
}

.faq-sidebar-link {
    color: var(--white);
    font-size: 18px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 25.20px;
    word-wrap: break-word;
    cursor: pointer;
    padding-left: 16px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.faq-sidebar-link:hover {
    color: var(--orange-dark);
    padding-left: 24px;
}

.faq-sidebar-link.active {
    color: var(--orange-dark);
}

.faq-sidebar-contact {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.faq-sidebar-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.faq-sidebar-contact-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-sidebar-contact-title {
    color: var(--white);
    font-size: 18px;
    font-family: Ppmori, sans-serif;
    font-weight: 600;
    line-height: 25.20px;
    word-wrap: break-word;
}

.faq-sidebar-contact-desc {
    color: var(--black-20);
    font-size: 14px;
    font-family: Ppmori, sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.70px;
    word-wrap: break-word;
}

/* Responsive adjustments */

details {
    @media (prefers-reduced-motion: no-preference) {
        interpolate-size: allow-keywords;
    }
}

details::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 0.5s allow-discrete, opacity 0.5s, block-size 0.5s;
}

details[open]::details-content {
    opacity: 1;
    block-size: auto;
}