.catalog-article {
    padding: 0 0 88px;
    background: #ffffff;
}

.catalog-article__topbar {
    margin-top: 80px;
    padding: 34px 0;
    background: #dfe7f6;
}

.catalog-article__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.catalog-article__body {
    padding-top: 34px;
}

.catalog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #09b79b;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.catalog-article__back::before {
    width: 12px;
    height: 12px;
    margin-top: -1px;
    border-left: 3px solid #0d2d4f;
    border-bottom: 3px solid #0d2d4f;
    content: "";
    transform: rotate(45deg);
}

.catalog-article__back:hover,
.catalog-article__back:focus {
    color: #08947d;
    text-decoration: none;
}

.catalog-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.catalog-article__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 128px;
    padding: 8px 18px;
    background: #ffffff;
    border-radius: 10px;
    color: #09b79b;
    font-size: 14px;
    font-weight: 500;
}

.catalog-article__intro {
    max-width: 960px;
}

.catalog-article__title {
    max-width: none !important;
    width: auto !important;
    margin: 0;
    color: #223246;
    font-family: "Lato", sans-serif;
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.03em;
    text-transform: none;
}

.catalog-article__content {
    max-width: 820px;
    margin-top: 52px;
    color: #2f4567;
    font-size: 17px;
    line-height: 1.78;
}

.catalog-article__date {
    margin-top: 18px;
    color: #4b5d75;
    font-size: 14px;
    font-weight: 400;
}

.catalog-article__content > :first-child {
    margin-top: 0;
}

.catalog-article__content h2,
.catalog-article__content h3,
.catalog-article__content h4,
.catalog-article__content h5 {
    margin-top: 34px;
    margin-bottom: 16px;
    color: #243a62;
    line-height: 1.2;
    text-transform: none;
}

.catalog-article__content h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.catalog-article__content h3 {
    font-size: clamp(22px, 2.5vw, 28px);
}

.catalog-article__content p,
.catalog-article__content ul,
.catalog-article__content ol {
    margin-bottom: 18px;
}

.catalog-article__content figure {
    margin: 32px 0;
}

.catalog-article__content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #dfe9f6;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(82, 113, 168, 0.12);
}

.catalog-article__content a {
    color: #0f5fa8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.catalog-article__content a:hover,
.catalog-article__content a:focus {
    color: #09467f;
}

/* FAQ accordion */
.faq-wrapper {
    margin-top: 32px;
}

.faq-container {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid #dfe9f6;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    background: #f7faff;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #edf3fc;
}

.faq-item.is-open .faq-question {
    background: #edf3fc;
}

.faq-question-title {
    margin: 0;
    color: #243a62;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.faq-toggle-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #09b79b;
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s;
}

.faq-item.is-open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-question p {
    margin: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: #2f4567;
    font-size: 16px;
    line-height: 1.75;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faq-question {
        padding: 16px 18px;
    }

    .faq-question-title {
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 18px 16px;
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .catalog-article {
        padding-bottom: 72px;
    }

    .catalog-article__topbar {
        margin-top: 80px;
        padding: 24px 0;
    }

    .catalog-article__topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-article__title {
        font-size: clamp(34px, 6vw, 50px);
    }

    .catalog-article__content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .catalog-article {
        padding-bottom: 56px;
    }

    .catalog-article__topbar {
        margin-top: 80px;
        padding: 20px 0;
    }

    .catalog-article__back {
        font-size: 16px;
    }

    .catalog-article__tag {
        min-width: 0;
    }

    .catalog-article__title {
        font-size: clamp(30px, 10.5vw, 40px);
        line-height: 1.16;
    }

    .catalog-article__content img {
        border-radius: 18px;
    }
}

.catalog-article__content img.img-mobile-app {
    width: auto;
    height: 550px;
}
