:root {
    --color-content-divider: var(--color-content-text);
}

.layout--content {
    background-color: var(--color-content-background);
}

.layout--content .header__container {
    padding-top: 22px;
    padding-bottom: 23px;
}

.layout--content .header__link {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.9px;
}

.layout--content .footer__container {
    min-height: 88px;
    padding-top: 0;
    padding-bottom: 0;

    @media (max-width: 768px) {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

.layout--content .footer__link {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.layout--content .footer__copyright {
    font-size: 16px;
    font-weight: 500;
}

.content-page {
    color: var(--color-content-text);
}

.content-page__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 53px 32px 80px;
    display: grid;
    grid-template-columns: 368px minmax(0, 1fr);
    column-gap: 40px;

    @media (max-width: 1024px) {
        grid-template-columns: 300px minmax(0, 1fr);
        column-gap: 32px;
    }

    @media (max-width: 768px) {
        padding: 56px 20px 64px;
        display: block;
    }
}

.content-page__sidebar {
    align-self: start;

    @media (max-width: 768px) {
        margin-bottom: 40px;
    }
}

.content-page__title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;

    @media (max-width: 568px) {
        font-size: 34px;
        letter-spacing: 3px;
    }
}

.content-page__meta {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.content-page__body {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;

    @media (max-width: 568px) {
        font-size: 17px;
    }
}

.content-page--faq .content-page__body {
    padding-top: 6px;
}

.content-page--legal .content-page__body {
    padding-top: 12px;
}

.content-page__body > * + * {
    margin-top: 23px;
}

.content-page__body h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.content-page__body ul {
    padding-left: 36px;
}

/* ==========================================================================
   Block: faq-list
   ========================================================================== */
.faq-list {
    border-top: 1px solid var(--color-content-divider);
}

.faq-list__item {
    border-bottom: 1px solid var(--color-content-divider);
}

.faq-list__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.faq-list__question {
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.faq-list__question::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.faq-list__toggle:checked + .faq-list__question::after {
    content: '-';
}

.faq-list__toggle:focus-visible + .faq-list__question {
    border-radius: 2px;
    outline: 3px solid var(--color-content-text);
    outline-offset: 4px;
}

.faq-list__answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding: 0 48px 0 0;
    transition: grid-template-rows 0.2s ease, padding-bottom 0.2s ease;
}

.faq-list__toggle:checked ~ .faq-list__answer {
    grid-template-rows: 1fr;
    padding-bottom: 16px;
}

.faq-list__answer > * {
    overflow: hidden;
}

.faq-list__answer p + p {
    margin-top: 16px;
}

@media (max-width: 568px) {
    .faq-list__question {
        font-size: 19px;
        padding: 18px 0;
    }

    .faq-list__question::after {
        font-size: 22px;
    }

    .faq-list__answer {
        padding-right: 24px;
    }
}
