.journal,
.journal-detail {
    margin: 40px 0 70px;
}

.journal__title,
.journal-detail__title,
.content-block-title {
    margin: 0;
    color: #000;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.35;
}

.journal__title {
    margin-bottom: 50px;
}

.journal__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.journal-card {
    display: flex;
    min-width: 0;
    height: 516px;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.journal-card[data-journal-page] {
    scroll-margin-top: 120px;
}

.journal-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.journal-card__image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    flex: 0 0 245px;
    background: #e6e6e6;
}

.journal-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.journal-card:hover .journal-card__image::after {
    background: rgba(0, 0, 0, 0.18);
}

.journal-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-card__body {
    display: flex;
    min-height: 0;
    padding: 0 20px 20px;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.journal-card__copy {
    width: 100%;
    min-height: 0;
    padding-top: 20px;
}

.journal-card__title {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color 0.3s ease;
}

.journal-card__title a {
    color: inherit;
}

.journal-card:hover .journal-card__title {
    color: #ffa200;
}

.journal-card__description {
    display: -webkit-box;
    overflow: hidden;
    color: #969696;
    font-size: 14px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.journal-card__description p {
    margin: 0;
}

.journal-button {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 30px;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #000;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.journal-button:hover,
.journal-button:focus {
    color: #fff;
    background: #000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

.journal-button--small {
    min-height: 38px;
    padding: 8px 30px;
}

.journal-button--small:hover,
.journal-button--small:focus {
    color: #fff;
    background: #ffa200;
    border-color: #ffa200;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 9px 1px rgba(255, 162, 0, 0.5);
}

.journal__more {
    display: flex;
    margin-top: 30px;
    justify-content: center;
}

.journal-button--more {
    min-width: 218px;
    min-height: 55px;
}

.journal-button--more,
.related-articles__all {
    background: #f9f9f9;
    border-color: #f9f9f9;
}

.journal-button--more:hover,
.journal-button--more:focus,
.related-articles__all:hover,
.related-articles__all:focus {
    color: #000;
    background: #ececec;
    border-color: #ececec;
    box-shadow: none;
}

.journal-button.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.journal-ajax-response {
    display: contents;
}

.journal-detail__content {
    margin-bottom: 70px;
}

.journal-detail__title {
    margin-bottom: 30px;
}

.journal-detail__text {
    color: #000;
    font-size: 14px;
    line-height: 25px;
}

.journal-detail__text p,
.journal-detail__text ul,
.journal-detail__text ol,
.journal-detail__text table,
.journal-detail__text blockquote {
    margin-top: 0;
    margin-bottom: 18px;
}

.journal-detail__text h2 {
    margin: 34px 0 16px;
    font-size: 24px;
    line-height: 1.4;
}

.journal-detail__text h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    line-height: 29px;
}

.journal-detail__text img {
    max-width: 100%;
    height: auto;
}

.journal-products,
.related-articles,
.content-faq {
    margin: 70px 0;
}

.journal-products .content-block-title {
    margin-bottom: 30px;
}

.journal-products .blog-post__slider {
    margin: 0;
}

.journal-products__navigation {
    display: flex;
    margin-top: 30px;
    gap: 12px;
}

.related-articles__header {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.related-articles__viewport {
    margin: -30px -36px -42px;
    padding: 30px 36px 42px;
    overflow: hidden;
}

.related-articles__list {
    display: flex;
}

.related-articles__item {
    width: calc((100% - 90px) / 4);
    flex: 0 0 calc((100% - 90px) / 4);
}

.related-articles__navigation {
    display: flex;
    margin-top: 30px;
    gap: 12px;
}

.content-faq__items {
    display: flex;
    margin-top: 30px;
    flex-direction: column;
    gap: 10px;
}

.content-faq__item {
    overflow: hidden;
    background: #f9f9f9;
}

.content-faq__question {
    margin: 0;
    font-size: inherit;
}

.content-faq__button {
    display: flex;
    width: 100%;
    min-height: 74px;
    padding: 24px 30px;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    color: #000;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.content-faq__button:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}

.content-faq__icon {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.content-faq__icon::before,
.content-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: #000;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.content-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.content-faq__item.is-open .content-faq__icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.content-faq__item.is-open .content-faq__icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.content-faq__answer,
.content-faq__answer[hidden] {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows 0.32s ease,
        opacity 0.24s ease,
        visibility 0s linear 0.32s;
}

.content-faq__item.is-open .content-faq__answer {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.content-faq__answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 90px 0 30px;
    color: #555;
    font-size: 14px;
    line-height: 24px;
    transition: padding-bottom 0.32s ease;
}

.content-faq__item.is-open .content-faq__answer-inner {
    padding-bottom: 30px;
}

.content-faq__answer-inner > :first-child {
    margin-top: 0;
}

.content-faq__answer-inner > :last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .content-faq__answer,
    .content-faq__answer-inner,
    .content-faq__icon::before,
    .content-faq__icon::after {
        transition: none;
    }
}

@media (max-width: 1199px) {
    .journal__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-articles__item {
        width: calc((100% - 60px) / 3);
        flex-basis: calc((100% - 60px) / 3);
    }
}

@media (max-width: 767px) {
    .journal,
    .journal-detail {
        margin: 30px 0 50px;
    }

    .journal__title,
    .journal-detail__title,
    .content-block-title {
        font-size: 30px;
        line-height: 1.45;
    }

    .journal__title {
        margin-bottom: 30px;
    }

    .journal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .journal-card {
        height: 516px;
    }

    .journal-detail__content,
    .journal-products,
    .related-articles,
    .content-faq {
        margin-bottom: 50px;
    }

    .journal-detail__content {
        margin-bottom: 50px;
    }

    .related-articles__header {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .related-articles__all {
        width: 100%;
    }

    .related-articles__viewport {
        margin: -20px;
        padding: 20px;
        overflow: visible;
    }

    .related-articles__item {
        width: 290px;
        flex-basis: 290px;
    }

    .content-faq__button {
        min-height: 82px;
        padding: 20px;
        gap: 10px;
        font-size: 15px;
    }

    .content-faq__answer-inner {
        padding: 0 60px 0 20px;
    }

    .content-faq__item.is-open .content-faq__answer-inner {
        padding-bottom: 24px;
    }
}
